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

WebGPURenderer: Remove duplication of interleaved attribute buffers. #26351

Merged
merged 18 commits into from
Jun 30, 2023

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