gpu: add BufferBindingType enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
ce0389df23
commit
0ddbfaf2b3
3 changed files with 9 additions and 8 deletions
|
|
@ -27,14 +27,6 @@ typedef struct WGPUSamplerImpl* WGPUSampler;
|
|||
typedef struct WGPUTextureImpl* WGPUTexture;
|
||||
typedef struct WGPUTextureViewImpl* WGPUTextureView;
|
||||
|
||||
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,
|
||||
|
|
|
|||
|
|
@ -167,6 +167,13 @@ pub const BlendOperation = enum(u32) {
|
|||
max = 0x00000004,
|
||||
};
|
||||
|
||||
pub const BufferBindingType = enum(u32) {
|
||||
none = 0x00000000,
|
||||
uniform = 0x00000001,
|
||||
storage = 0x00000002,
|
||||
read_only_storage = 0x00000003,
|
||||
};
|
||||
|
||||
test "name" {
|
||||
try std.testing.expect(std.mem.eql(u8, @tagName(Feature.timestamp_query), "timestamp_query"));
|
||||
}
|
||||
|
|
@ -178,4 +185,5 @@ test "syntax" {
|
|||
_ = AlphaMode;
|
||||
_ = BlendFactor;
|
||||
_ = BlendOperation;
|
||||
_ = BufferBindingType;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ pub const AddressMode = @import("enums.zig").AddressMode;
|
|||
pub const AlphaMode = @import("enums.zig").AlphaMode;
|
||||
pub const BlendFactor = @import("enums.zig").BlendFactor;
|
||||
pub const BlendOperation = @import("enums.zig").BlendOperation;
|
||||
pub const BufferBindingType = @import("enums.zig").BufferBindingType;
|
||||
|
||||
test "syntax" {
|
||||
_ = Interface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue