gpu: add Sampler.AddressMode
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
af9c01d851
commit
ee65cb286c
2 changed files with 6 additions and 7 deletions
|
|
@ -1,12 +1,5 @@
|
|||
typedef uint32_t WGPUFlags;
|
||||
|
||||
typedef enum WGPUAddressMode {
|
||||
WGPUAddressMode_Repeat = 0x00000000,
|
||||
WGPUAddressMode_MirrorRepeat = 0x00000001,
|
||||
WGPUAddressMode_ClampToEdge = 0x00000002,
|
||||
WGPUAddressMode_Force32 = 0x7FFFFFFF
|
||||
} WGPUAddressMode;
|
||||
|
||||
typedef enum WGPUAlphaMode {
|
||||
WGPUAlphaMode_Premultiplied = 0x00000000,
|
||||
WGPUAlphaMode_Unpremultiplied = 0x00000001,
|
||||
|
|
|
|||
|
|
@ -1 +1,7 @@
|
|||
ptr: *anyopaque,
|
||||
|
||||
pub const AddressMode = enum(u32) {
|
||||
repeat = 0x00000000,
|
||||
mirror_repeat = 0x00000001,
|
||||
clamp_to_edge = 0x00000002,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue