SPIRV-Cross/shaders-msl/comp/image-cube-array-load-store.comp
2018-05-25 12:43:25 +02:00

14 lines
313 B
Plaintext

#version 450
layout(local_size_x = 1) in;
layout(r32f, binding = 0) uniform readonly imageCubeArray uImageIn;
layout(r32f, binding = 1) uniform writeonly imageCubeArray uImageOut;
void main()
{
ivec3 coord = ivec3(9, 7, 11);
vec4 indata = imageLoad(uImageIn, coord);
imageStore(uImageOut, coord, indata);
}