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
Replace `object` function arguments in WebGL with typed arrays #20396
Changes from 1 commit
36f39ce
c1c74ed
20f21cb
daceeb4
cb85a95
c42127b
2437a84
fbfcc76
80c6891
File filter...
Jump to…
Adapt uniform[fv] and similar to accept typed array args
- Loading branch information
| @@ -418,11 +418,15 @@ def pickFirstSignature(condition, filterLambda): | ||
| template = info.template | ||
| declType = info.declType | ||
|
|
||
| argName = "arg%d" % distinguishingIndex | ||
|
|
||
| testCode = instantiateJSToNativeConversionTemplate( | ||
| template, | ||
| {"val": distinguishingArg}, | ||
| declType, | ||
| "arg%d" % distinguishingIndex) | ||
| argName) | ||
| if type_needs_auto_root(type): | ||
| testCode.append(CGGeneric("auto_root!(in(cx) let %s = %s);" % (argName, argName))) | ||
jdm
Member
|
||
|
|
||
| # Indent by 4, since we need to indent further than our "do" statement | ||
| caseBody.append(CGIndenter(testCode, 4)) | ||
What if we move this into
instantiateJSToNativeConversionTemplateinstead? Can we also add codegen tests for: