Allow DepthUnchanged and DepthReplaced Modes in same SPIR-V module.
Fixes #2555
This commit is contained in:
parent
0eca413092
commit
b479ce0bfa
4 changed files with 58 additions and 4 deletions
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;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue