gpu: add Texture.Aspect enum

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-11 08:12:49 -07:00 committed by Stephen Gutekanst
parent c91d969c7b
commit 37b75fe65b
2 changed files with 8 additions and 9 deletions

View file

@ -1,14 +1,5 @@
typedef uint32_t WGPUFlags;
typedef enum WGPUTextureAspect {
WGPUTextureAspect_All = 0x00000000,
WGPUTextureAspect_StencilOnly = 0x00000001,
WGPUTextureAspect_DepthOnly = 0x00000002,
WGPUTextureAspect_Plane0Only = 0x00000003,
WGPUTextureAspect_Plane1Only = 0x00000004,
WGPUTextureAspect_Force32 = 0x7FFFFFFF
} WGPUTextureAspect;
typedef enum WGPUTextureComponentType {
WGPUTextureComponentType_Float = 0x00000000,
WGPUTextureComponentType_Sint = 0x00000001,

View file

@ -1 +1,9 @@
ptr: *anyopaque,
pub const Aspect = enum(u32) {
all = 0x00000000,
stencil_only = 0x00000001,
depth_only = 0x00000002,
plane0_only = 0x00000003,
plane1_only = 0x00000004,
};