gpu: add AddressMode enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
c3cfb77ac7
commit
1ad93c1fbb
3 changed files with 6 additions and 7 deletions
|
|
@ -27,13 +27,6 @@ typedef struct WGPUSamplerImpl* WGPUSampler;
|
|||
typedef struct WGPUTextureImpl* WGPUTexture;
|
||||
typedef struct WGPUTextureViewImpl* WGPUTextureView;
|
||||
|
||||
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,
|
||||
|
|
|
|||
5
gpu/src/address_mode.zig
Normal file
5
gpu/src/address_mode.zig
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
const AddressMode = enum(u32) {
|
||||
repeat = 0x00000000,
|
||||
mirror_repeat = 0x00000001,
|
||||
clamp_to_edge = 0x00000002,
|
||||
};
|
||||
|
|
@ -40,6 +40,7 @@ pub const FeatureName = @import("feature_name.zig").FeatureName;
|
|||
pub const TextureUsage = @import("texture_usage.zig").TextureUsage;
|
||||
pub const TextureFormat = @import("texture_format.zig").TextureFormat;
|
||||
pub const PresentMode = @import("present_mode.zig").PresentMode;
|
||||
pub const AddressMode = @import("address_mode.zig").AddressMode;
|
||||
|
||||
test "syntax" {
|
||||
_ = Interface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue