gpu: add Texture.ComponentType enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
37b75fe65b
commit
8ced6a43ad
2 changed files with 7 additions and 8 deletions
|
|
@ -1,13 +1,5 @@
|
|||
typedef uint32_t WGPUFlags;
|
||||
|
||||
typedef enum WGPUTextureComponentType {
|
||||
WGPUTextureComponentType_Float = 0x00000000,
|
||||
WGPUTextureComponentType_Sint = 0x00000001,
|
||||
WGPUTextureComponentType_Uint = 0x00000002,
|
||||
WGPUTextureComponentType_DepthComparison = 0x00000003,
|
||||
WGPUTextureComponentType_Force32 = 0x7FFFFFFF
|
||||
} WGPUTextureComponentType;
|
||||
|
||||
typedef enum WGPUTextureDimension {
|
||||
WGPUTextureDimension_1D = 0x00000000,
|
||||
WGPUTextureDimension_2D = 0x00000001,
|
||||
|
|
|
|||
|
|
@ -7,3 +7,10 @@ pub const Aspect = enum(u32) {
|
|||
plane0_only = 0x00000003,
|
||||
plane1_only = 0x00000004,
|
||||
};
|
||||
|
||||
pub const ComponentType = enum(u32) {
|
||||
float = 0x00000000,
|
||||
sint = 0x00000001,
|
||||
uint = 0x00000002,
|
||||
depth_comparison = 0x00000003,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue