Allow DepthUnchanged and DepthReplaced Modes in same SPIR-V module.
Fixes #2555
This commit is contained in:
8
Test/spv.depthUnchanged.frag
Normal file
8
Test/spv.depthUnchanged.frag
Normal 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user