-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebGPU: enable unpacking WGSL code in filamat #8516
base: main
Are you sure you want to change the base?
Conversation
…t pass the test due to the webgpu build failing or similar
@@ -196,6 +197,11 @@ static constexpr const char* shaderLanguageToString(ShaderLanguage shaderLanguag | |||
return "MSL"; | |||
case ShaderLanguage::METAL_LIBRARY: | |||
return "Metal precompiled library"; | |||
case ShaderLanguage::WGSL: | |||
return "WebGPU"; | |||
// TODO Should we add this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should definitely have a default case. The question is whether we should return "Unknown", as you have done, or blow up/panic/crash (fail loudly). Normally, I would opt for the later and fail loudly, as I suspect that would get caught pretty early/quickly in the process and the "Unknown" return might not fail here, but later on in an unexpected way. So, I would lean that way myself (fail loudly) (this is not a case that should ever practically happen. if it does it is a programming error/miss).
bool printDictionaryGLSL = false; | ||
bool printDictionaryESSL1 = false; | ||
bool printDictionarySPIRV = false; | ||
bool printDictionaryMetal = false; | ||
bool printDictionaryWGSL = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mentioned in prior meeting, but "DictionaryWGSL" may not be relevant
in filamat, enable unpacking WGSL code
BUGS = [397672412]