Skip to content

Commit

Permalink
Use WGPUTextureUsageFlags in WGPUSurfaceConfiguration
Browse files Browse the repository at this point in the history
The TextureUsage is a Bitmask, update the usage in SurfaceConfiguration
to use the Flags typedef to be consistent with out uses of TextureUsage.

Follow-up to webgpu-native#203
  • Loading branch information
dj2 committed Aug 21, 2023
1 parent 7d17f96 commit 1ba9772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ typedef struct WGPUSurfaceConfiguration {
WGPUChainedStruct const * nextInChain;
WGPUDevice device;
WGPUTextureFormat format;
WGPUTextureUsage usage;
WGPUTextureUsageFlags usage;
size_t viewFormatCount;
WGPUTextureFormat const * viewFormats;
WGPUCompositeAlphaMode alphaMode;
Expand Down

0 comments on commit 1ba9772

Please sign in to comment.