Skip to content

Document that objects may be deduplicated #516

@kainino0x

Description

@kainino0x

Two create calls (e.g. to wgpuCreateBindGroupLayout) may return the same pointer. We should document this so that people are aware if trying to use them as map keys, or something.

I think we can specify exactly which objects may be deduplicated (instance?, bind group, bind group layout, pipeline layout, shader module, render/compute pipeline, sampler, texture view) and which can't be (adapter?, device, queue?, buffer, texture, queryset, encoders / passes / command buffers / render bundles).

See also #167

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions