Skip to content

wgpu_render_pass_set_index_buffer and wgpu_render_pass_set_vertex_buffer do not support size = 0 #738

@DagAgren

Description

@DagAgren

The spec at https://gpuweb.github.io/gpuweb/#dom-gpurenderencoderbase-setindexbuffer says, for setIndexBuffer and setVertexBuffer, "If size is zero, the remaining size (after offset) of the GPUBuffer is used."

However, this seems to be currently unsupported in wgpu, and using 0 will cause draw commands to fail because indices are compared against the literal 0 value instead of the size of the buffer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions