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

TSL Transpiler: Support more matrix types, bool vectors. #30517

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

CodyJasonBennett
Copy link
Contributor

@CodyJasonBennett CodyJasonBennett commented Feb 14, 2025

Related issue: #27538

Description

The fix in #30501 is incomplete and does not account for mat[234]x[234] types. Additionally, I added bvec[234] type specifiers. hvec[234], dvec[234], and fvec[234] are reserved in the language but not used. This is still far from complete, and both storage qualifiers and storage type specifiers (e.g. sampler2D) are not supported. Further, suffixes and octal/hex representations are not tokenized correctly, if at all. I assume this is functionally only for porting ShaderToy shaders (unminified; no preprocessor) in examples, so this is best effort for that purpose. I maintain my own compiler aimed at robustness, but there is no clear way to have that serve as a front-end to node materials and have to maintain an IR over TSL.

See "3.8 Keywords" of https://registry.khronos.org/OpenGL/specs/es/3.0/GLSL_ES_Specification_3.00.pdf.

@sunag sunag added this to the r174 milestone Feb 14, 2025
@sunag sunag merged commit b1d7cdc into mrdoob:dev Feb 14, 2025
11 checks passed
@CodyJasonBennett CodyJasonBennett deleted the glsl-decoder-more-specifiers branch February 14, 2025 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants