gpu: correct enums to snake_case

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-09 08:14:46 -07:00 committed by Stephen Gutekanst
parent 0017303cde
commit c3cfb77ac7
5 changed files with 124 additions and 128 deletions

View file

@ -1,18 +1,17 @@
pub const FeatureName = enum(u32) {
Undefined = 0x00000000,
Depth24UnormStencil8 = 0x00000002,
Depth32FloatStencil8 = 0x00000003,
TimestampQuery = 0x00000004,
PipelineStatisticsQuery = 0x00000005,
TextureCompressionBC = 0x00000006,
TextureCompressionETC2 = 0x00000007,
TextureCompressionASTC = 0x00000008,
IndirectFirstInstance = 0x00000009,
DepthClamping = 0x000003E8,
DawnShaderFloat16 = 0x000003E9,
DawnInternalUsages = 0x000003EA,
DawnMultiPlanarFormats = 0x000003EB,
DawnNative = 0x000003EC,
depth24_unorm_stencil8 = 0x00000002,
depth32_float_stencil8 = 0x00000003,
timestamp_query = 0x00000004,
pipeline_statistics_query = 0x00000005,
texture_compression_bc = 0x00000006,
texture_compression_etc2 = 0x00000007,
texture_compression_astc = 0x00000008,
indirect_first_instance = 0x00000009,
depth_clamping = 0x000003e8,
dawn_shader_float16 = 0x000003e9,
dawn_internal_usages = 0x000003ea,
dawn_multi_planar_formats = 0x000003eb,
dawn_native = 0x000003ec,
};
// TODO: add featureNameString method