gpu: add FilterMode enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
c38edecf2f
commit
3c3a940833
2 changed files with 5 additions and 6 deletions
|
|
@ -1,11 +1,5 @@
|
|||
typedef uint32_t WGPUFlags;
|
||||
|
||||
typedef enum WGPUFilterMode {
|
||||
WGPUFilterMode_Nearest = 0x00000000,
|
||||
WGPUFilterMode_Linear = 0x00000001,
|
||||
WGPUFilterMode_Force32 = 0x7FFFFFFF
|
||||
} WGPUFilterMode;
|
||||
|
||||
typedef enum WGPUFrontFace {
|
||||
WGPUFrontFace_CCW = 0x00000000,
|
||||
WGPUFrontFace_CW = 0x00000001,
|
||||
|
|
|
|||
|
|
@ -128,6 +128,11 @@ pub const FeatureName = enum(u32) {
|
|||
chromium_experimental_dp4a = 0x000003ed,
|
||||
};
|
||||
|
||||
pub const FilterMode = enum(u32) {
|
||||
nearest = 0x00000000,
|
||||
linear = 0x00000001,
|
||||
};
|
||||
|
||||
test "BackendType name" {
|
||||
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue