Skip to content

How to set a Attribute in WEBGLPipline with custom offset and stride? #1761

Closed Answered by ibgreen
Seungup asked this question in Q&A
Discussion options

You must be logged in to vote

@Seungup If I understand your question correctly, it is about how to specify an offset into the buffer when using it as an attribute.

It is true that the Accessor concept is being removed in v9. The main motivation for this change is that WebGPU does not have the same flexibility as WebGL (where attribute parameters can be specified after pipeline creation) and since luma.gl 9.0 API is intended to support both APIs it must observe this limitation, and the accessor concept basically became superfluous.

There is a new type ShaderLayout that contains much of the information that was previously encoded in accessors. work in progress documentation here: https://github.com/visgl/luma.gl/blob/ma…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Seungup
Comment options

Seungup Jul 7, 2023
Collaborator Author

Answer selected by Seungup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants