mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-12 09:09:47 +12:00
add: comment
This commit is contained in:
parent
42fc2bb490
commit
f42a343e85
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@ using namespace metal;
|
|||
|
||||
constant ushort lutTextureWidth [[function_constant(0)]];
|
||||
|
||||
// The copy is done in a vertex shader instead of a compute kernel, since dispatching compute would require ending the render pass
|
||||
vertex void vertexCopyToLutTexture(uint vid [[vertex_id]], texture1d_array<ushort, access::write> out [[texture(0)]], constant ushort* data [[buffer(0)]]) {
|
||||
out.write(data[vid], vid % lutTextureWidth, vid / lutTextureWidth);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue