Allow DepthUnchanged and DepthReplaced Modes in same SPIR-V module.

Fixes #2555
This commit is contained in:
Greg Fischer
2021-03-01 17:45:03 -07:00
parent 0eca413092
commit b479ce0bfa
4 changed files with 58 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
#version 430
layout(location = 0) out vec4 outColor;
layout(depth_unchanged) out float gl_FragDepth;
void main() {
outColor = vec4(1.0, 0.0, 0.0, 1.0);
gl_FragDepth = gl_FragCoord.y;
}