Skip to content

Conversation

@aardgoose
Copy link
Contributor

Associate attribute GPUBuffers with interleaved attributes' common shared buffer instead of the attribute itself to remove the duplication of GPUBuffers.

Rework vertex buffer layout for the pipeline to remove duplicate buffer entries, and setVertexBuffer() calls to match the new layout.

Rework nodes InstanceNode and BufferAttributeNode to use shared backing buffers for conversion of mat4 to vec4 * 4.
(required to ensure the backing buffer is of the correct type)

@sunag sunag self-assigned this Jun 29, 2023
@sunag sunag added this to the r155 milestone Jun 29, 2023
@sunag sunag merged commit 37b932f into mrdoob:dev Jun 30, 2023
@aardgoose aardgoose deleted the webgpu-interleave branch July 5, 2023 07:56
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.

3 participants