mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-12 09:09:47 +12:00
setup copy shader
This commit is contained in:
parent
fca03fe2b8
commit
3d32d7a292
1 changed files with 5 additions and 0 deletions
5
src/host_shaders/metal_copy_to_lut_texture.metal
Normal file
5
src/host_shaders/metal_copy_to_lut_texture.metal
Normal file
|
@ -0,0 +1,5 @@
|
|||
constant ushort lutTextureWidth [[function_constant(0)]];
|
||||
|
||||
vertex void vertexCopyToLUTTexture(uint vid [[vertex_id]], constant ushort* data [[buffer(0)]], texture1d_array<ushort, access::write> out [[texture(0)]]) {
|
||||
out.write(data[vid], vid % lutTextureWidth, vid / lutTextureWidth);
|
||||
}
|
Loading…
Add table
Reference in a new issue