diff --git a/gpu/TODO-webgpu.h b/gpu/TODO-webgpu.h index 3cc959fa..eb5db9a9 100644 --- a/gpu/TODO-webgpu.h +++ b/gpu/TODO-webgpu.h @@ -1,15 +1,5 @@ typedef uint32_t WGPUFlags; -typedef enum WGPUTextureSampleType { - WGPUTextureSampleType_Undefined = 0x00000000, - WGPUTextureSampleType_Float = 0x00000001, - WGPUTextureSampleType_UnfilterableFloat = 0x00000002, - WGPUTextureSampleType_Depth = 0x00000003, - WGPUTextureSampleType_Sint = 0x00000004, - WGPUTextureSampleType_Uint = 0x00000005, - WGPUTextureSampleType_Force32 = 0x7FFFFFFF -} WGPUTextureSampleType; - typedef enum WGPUTextureViewDimension { WGPUTextureViewDimension_Undefined = 0x00000000, WGPUTextureViewDimension_1D = 0x00000001, diff --git a/gpu/src/Texture.zig b/gpu/src/Texture.zig index 980a7456..6a2218da 100644 --- a/gpu/src/Texture.zig +++ b/gpu/src/Texture.zig @@ -119,3 +119,12 @@ pub const Format = enum(u32) { astc_12x12_unorm_srgb = 0x0000005e, r8_bg8_biplanar420_unorm = 0x0000005f, }; + +pub const SampleType = enum(u32) { + undef = 0x00000000, + float = 0x00000001, + unfilterable_float = 0x00000002, + depth = 0x00000003, + sint = 0x00000004, + uint = 0x00000005, +};