SPIRV-Cross/shaders-msl/comp/image-cube-array-load-store.comp

14 lines
313 B
Plaintext
Raw Normal View History

#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);
}