mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 15:08:38 +00:00
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.
10 lines
367 B
GLSL
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));
|
|
}
|