-
Notifications
You must be signed in to change notification settings - Fork 207
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
feat(engine): ShaderModule.getBindings() #2104
Conversation
@@ -51,6 +52,7 @@ export type ShaderModule< | |||
|
|||
/** uniform buffers, textures, samplers, storage, ... */ | |||
bindings?: Record<keyof BindingsT, {location: number; type: 'texture' | 'sampler' | 'uniforms'}>; | |||
getBindings?: (settings?: any, prevBindings?: any) => Record<string, Texture | Sampler>; |
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.
See comment about dual functions in the other PR.
@ibgreen @Pessimistress I've reworked the code to remove the |
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.
- I have a sense that something should be documented about this?
- Maybe you can help "the cause" by spending 5-10 minutes improving shadermodules docs?
@ibgreen I've done a pass on the |
Background
ShaderModule
has no support for bindings, which are needed to complete the port over to UBOs. Discussion in v9.0 PR: #2099Change List
getBindings
toShaderModule
typeShaderInputs
&Model
classes