Files
mandy/runtime/test/glsl/ps_draw_uint.frag
tedin7 4a16dc1669 test: run the d3d12_draw logic-op pass on a UINT render target (TEST-1007)
D3D12 allows logic ops on UINT targets only; Intel Arc returns the source on UNORM. The XOR draw now runs on its own R8G8B8A8_UINT target with a uint pixel shader, and the expected pixels are the integer XOR.
2026-11-23 04:31:55 +01:00

10 lines
367 B
GLSL

#version 460
// The UINT twin of ps_draw.frag, for the logic-op pass of d3d12_draw_test: D3D12 allows logic ops only on UINT
// render targets, so the pixel shader writes integers. The output is the vertex color as 0..255 (no tint).
layout(location = 0) in vec4 color;
layout(location = 0) out uvec4 target;
void main() {
target = uvec4(round(color * 255.0));
}