Skip to content

Document that objects may be deduplicated #516

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

Activity

  1. eliemichel commented on Mar 19, 2025

    @eliemichel
    Collaborator

    I agree, it took me some time to realize I did not need to maintain my own descriptor -> bind group map since the WebGPU implem already does it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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