mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-26 23:55:46 +00:00
Only use one colour output for discard PS on vulkan
* Fixes a minor validation warning (which may or may not be legit, but is easy to silence)
This commit is contained in:
@@ -93,7 +93,9 @@ uniform uint flags;
|
||||
|
||||
#endif
|
||||
|
||||
// on vulkan we're always rendering to just one attachment
|
||||
FRAG_OUT(0) out patternType col0;
|
||||
#if !defined(VULKAN)
|
||||
FRAG_OUT(1) out patternType col1;
|
||||
FRAG_OUT(2) out patternType col2;
|
||||
FRAG_OUT(3) out patternType col3;
|
||||
@@ -101,6 +103,7 @@ FRAG_OUT(4) out patternType col4;
|
||||
FRAG_OUT(5) out patternType col5;
|
||||
FRAG_OUT(6) out patternType col6;
|
||||
FRAG_OUT(7) out patternType col7;
|
||||
#endif
|
||||
|
||||
void main()
|
||||
{
|
||||
@@ -126,5 +129,10 @@ void main()
|
||||
|
||||
patternType vecval = patternType(val, val, val, val);
|
||||
|
||||
// on vulkan we're always rendering to just one attachment
|
||||
#ifdef VULKAN
|
||||
col0 = vecval;
|
||||
#else
|
||||
col0 = col1 = col2 = col3 = col4 = col5 = col6 = col7 = vecval;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user