Change compile flags from uint32_t to string key/value pairs

* For D3D this is overkill as we just stuff the uint32_t flags into a
  string. However for SPIR-V this will let us store the parameters from
  an OpModuleProcessed.
This commit is contained in:
baldurk
2017-08-30 11:56:42 +01:00
parent a25de03043
commit 346419f7a6
28 changed files with 161 additions and 81 deletions
+2 -2
View File
@@ -3600,8 +3600,8 @@ void TextureViewer::reloadCustomShaders(const QString &filter)
rdctype::str errors;
ResourceId id;
std::tie(id, errors) =
r->BuildCustomShader("main", source.toUtf8().data(), 0, ShaderStage::Pixel);
std::tie(id, errors) = r->BuildCustomShader("main", source.toUtf8().data(),
ShaderCompileFlags(), ShaderStage::Pixel);
if(m_CustomShaderEditor.contains(key))
{