gpu: add Texture.Dimension enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
8ced6a43ad
commit
8b69eda07b
2 changed files with 6 additions and 7 deletions
|
|
@ -1,12 +1,5 @@
|
||||||
typedef uint32_t WGPUFlags;
|
typedef uint32_t WGPUFlags;
|
||||||
|
|
||||||
typedef enum WGPUTextureDimension {
|
|
||||||
WGPUTextureDimension_1D = 0x00000000,
|
|
||||||
WGPUTextureDimension_2D = 0x00000001,
|
|
||||||
WGPUTextureDimension_3D = 0x00000002,
|
|
||||||
WGPUTextureDimension_Force32 = 0x7FFFFFFF
|
|
||||||
} WGPUTextureDimension;
|
|
||||||
|
|
||||||
typedef enum WGPUTextureFormat {
|
typedef enum WGPUTextureFormat {
|
||||||
WGPUTextureFormat_Undefined = 0x00000000,
|
WGPUTextureFormat_Undefined = 0x00000000,
|
||||||
WGPUTextureFormat_R8Unorm = 0x00000001,
|
WGPUTextureFormat_R8Unorm = 0x00000001,
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,9 @@ pub const ComponentType = enum(u32) {
|
||||||
uint = 0x00000002,
|
uint = 0x00000002,
|
||||||
depth_comparison = 0x00000003,
|
depth_comparison = 0x00000003,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const Dimension = enum(u32) {
|
||||||
|
dimension_1d = 0x00000000,
|
||||||
|
dimension_2d = 0x00000001,
|
||||||
|
dimension_3d = 0x00000002,
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue