gpu: add Sampler.BindingType enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
f3a8fbb0d3
commit
1d8f6f9064
2 changed files with 7 additions and 8 deletions
|
|
@ -1,13 +1,5 @@
|
|||
typedef uint32_t WGPUFlags;
|
||||
|
||||
typedef enum WGPUSamplerBindingType {
|
||||
WGPUSamplerBindingType_Undefined = 0x00000000,
|
||||
WGPUSamplerBindingType_Filtering = 0x00000001,
|
||||
WGPUSamplerBindingType_NonFiltering = 0x00000002,
|
||||
WGPUSamplerBindingType_Comparison = 0x00000003,
|
||||
WGPUSamplerBindingType_Force32 = 0x7FFFFFFF
|
||||
} WGPUSamplerBindingType;
|
||||
|
||||
typedef enum WGPUStencilOperation {
|
||||
WGPUStencilOperation_Keep = 0x00000000,
|
||||
WGPUStencilOperation_Zero = 0x00000001,
|
||||
|
|
|
|||
|
|
@ -5,3 +5,10 @@ pub const AddressMode = enum(u32) {
|
|||
mirror_repeat = 0x00000001,
|
||||
clamp_to_edge = 0x00000002,
|
||||
};
|
||||
|
||||
pub const BindingType = enum(u32) {
|
||||
undef = 0x00000000,
|
||||
filtering = 0x00000001,
|
||||
non_filtering = 0x00000002,
|
||||
comparison = 0x00000003,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue