diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index d23ab625..ad16999a 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -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, diff --git a/gpu/src/Texture.zig b/gpu/src/Texture.zig index d1866642..735f6c16 100644 --- a/gpu/src/Texture.zig +++ b/gpu/src/Texture.zig @@ -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, +};