third_party/spirv-cross/reference/opt/shaders/desktop-only/frag/image-size.frag
raw| 1 | #version 450 |
| 2 | |
| 3 | layout(binding = 0, r32f) uniform readonly writeonly image2D uImage1; |
| 4 | layout(binding = 1, r32f) uniform readonly writeonly image2D uImage2; |
| 5 | |
| 6 | layout(location = 0) out vec4 FragColor; |
| 7 | |
| 8 | void main() |
| 9 | { |
| 10 | FragColor = vec4(vec2(imageSize(uImage1)), vec2(imageSize(uImage2))); |
| 11 | } |
| 12 |