Enable WebGPU option for matc and add WGSL options for shader generation

This commit is contained in:
Juan David Caldas
2025-03-11 17:40:21 -04:00
committed by bridgewaterrobbie
parent 8ea4cb50d2
commit 9c69cb8484
19 changed files with 101 additions and 16 deletions
+4
View File
@@ -57,6 +57,10 @@ ShaderExtractor::ShaderExtractor(backend::ShaderLanguage target, const void* dat
mMaterialTag = ChunkType::MaterialMetalLibrary;
mDictionaryTag = ChunkType::DictionaryMetalLibrary;
break;
case backend::ShaderLanguage::WGSL:
mMaterialTag = ChunkType::MaterialWgsl;
mDictionaryTag = ChunkType::DictionaryText;
break;
case backend::ShaderLanguage::SPIRV:
mMaterialTag = ChunkType::MaterialSpirv;
mDictionaryTag = ChunkType::DictionarySpirv;