When replaying resource discards fill with explicit pattern. Closes #284

* This helps catches cases where a discarded image is accidentally used and in
  many cases may still have valid data. Particularly on Vulkan this is relevant
  for DONT_CARE renderpass load and store ops.
This commit is contained in:
baldurk committed 2020-07-13 17:29:11 +01:00
1 parent bc4a803605
commit 02a54be6ad
65 files changed
+5855 -96

No files matched your search

@@ -100,6 +100,8 @@ static const BuiltinShaderConfig builtinShaders[] = {
rdcspv::ShaderStage::Fragment, FeatureCheck::NoCheck, true},
{BuiltinShader::ShaderDebugSampleVS, EmbeddedResource(glsl_shaderdebug_sample_vert),
rdcspv::ShaderStage::Vertex, FeatureCheck::NoCheck, true},
{BuiltinShader::DiscardFS, EmbeddedResource(glsl_discard_frag), rdcspv::ShaderStage::Fragment,
FeatureCheck::NoCheck, true},
};
RDCCOMPILE_ASSERT(ARRAY_COUNT(builtinShaders) == arraydim<BuiltinShader>(),