Skip to content
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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

rqreyes
Copy link

@rqreyes rqreyes commented Mar 11, 2025

in filamat, enable unpacking WGSL code

BUGS = [397672412]

@rqreyes rqreyes added the internal Issue/PR does not affect clients label Mar 11, 2025
@rqreyes rqreyes self-assigned this Mar 11, 2025
@rqreyes rqreyes marked this pull request as draft March 11, 2025 17:50
@@ -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?
Copy link

@AndyHovingh AndyHovingh Mar 12, 2025

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;
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants