gpu: add Buffer.BindingType enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
97b21c8ac8
commit
87b06cf373
2 changed files with 7 additions and 8 deletions
|
|
@ -1,13 +1,5 @@
|
|||
typedef uint32_t WGPUFlags;
|
||||
|
||||
typedef enum WGPUBufferBindingType {
|
||||
WGPUBufferBindingType_Undefined = 0x00000000,
|
||||
WGPUBufferBindingType_Uniform = 0x00000001,
|
||||
WGPUBufferBindingType_Storage = 0x00000002,
|
||||
WGPUBufferBindingType_ReadOnlyStorage = 0x00000003,
|
||||
WGPUBufferBindingType_Force32 = 0x7FFFFFFF
|
||||
} WGPUBufferBindingType;
|
||||
|
||||
typedef enum WGPUBufferMapAsyncStatus {
|
||||
WGPUBufferMapAsyncStatus_Success = 0x00000000,
|
||||
WGPUBufferMapAsyncStatus_Error = 0x00000001,
|
||||
|
|
|
|||
|
|
@ -1 +1,8 @@
|
|||
ptr: *anyopaque,
|
||||
|
||||
pub const BindingType = enum(u32) {
|
||||
undef = 0x00000000,
|
||||
uniform = 0x00000001,
|
||||
storage = 0x00000002,
|
||||
read_only_storage = 0x00000003,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue