Added basic input attachment sample
This commit is contained in:
parent
8a6184dc81
commit
a1f166e001
11 changed files with 731 additions and 0 deletions
14
data/shaders/inputattachments/attachmentwrite.frag
Normal file
14
data/shaders/inputattachments/attachmentwrite.frag
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#version 450
|
||||
|
||||
layout (location = 0) in vec3 inColor;
|
||||
|
||||
layout (location = 0) out vec4 outSwapChainColor;
|
||||
layout (location = 1) out vec4 outColor;
|
||||
layout (location = 2) out float outDepth;
|
||||
|
||||
void main()
|
||||
{
|
||||
outSwapChainColor = vec4(0.0);
|
||||
outColor = vec4(inColor, 0.0);
|
||||
outDepth = gl_FragDepth;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue