Skip to content

Why does wgpuBufferGetUsage return WGPUBufferUsage instead of WGPUBufferUsageFlags? #172

Closed

Description

@mwyrzykowski

The declaration for wgpuBufferGetUsage is:

WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer)

but a WGPUBuffer may have multiple usages. Shouldn't it return WGPUBufferUsageFlags instead?

Activity

  1. mwyrzykowski commented on Jan 19, 2023

    @mwyrzykowski
    Author

    The same issue exists for WGPUTextureUsage wgpuTextureGetUsage(WGPUTexture texture)

  2. self-assigned this
    on Jan 20, 2023
  3. Kangz commented on Jan 20, 2023

    @Kangz
    Collaborator

    Good catch, we should fix this.

  4. added
    has resolution
    on May 24, 2023
  5. self-assigned this
    on May 25, 2023
  6. added a commit that references this issue on Jun 5, 2023
    cfd1b85
  7. added a commit that references this issue on Jun 5, 2023
    64aeb86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

has resolution

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions