mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-15 02:11:22 +00:00
Workaround ARM driver bug, hide UBOs unless they're used. Closes #1225
This commit is contained in:
2 files changed
+27
-18
No files matched your search
@@ -170,9 +170,13 @@ VulkanShaderCache::VulkanShaderCache(WrappedVulkan *driver)
|
||||
if(driverVersion.TexelFetchBrokenDriver())
|
||||
defines += "#define NO_TEXEL_FETCH\n";
|
||||
|
||||
// add UBO definitions as needed, to workaround ARM bug
|
||||
if(config.builtin == BuiltinShader::TextVS || config.builtin == BuiltinShader::TextFS)
|
||||
defines += "#define FONT_UBOS\n";
|
||||
|
||||
if(config.builtin == BuiltinShader::TexDisplayFS)
|
||||
defines += "#define HEATMAP_UBO\n";
|
||||
|
||||
GenerateGLSLShader(sources, eShaderVulkan, defines, GetDynamicEmbeddedResource(config.resource),
|
||||
430, config.uniforms);
|
||||
|
||||
|
||||
Reference in new issue
Block a user