From ae3137cb981d0827edb60ba8a0138a0a3a30b44d Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 15 Jul 2022 19:43:19 -0700 Subject: [PATCH] gpu: update translation guidelines Signed-off-by: Stephen Gutekanst --- gpu/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/gpu/README.md b/gpu/README.md index 94e58d1d..5588b21e 100644 --- a/gpu/README.md +++ b/gpu/README.md @@ -108,4 +108,5 @@ The rules for translating `webgpu.h` are as follows: * `BC5RGUnorm -> bc5_rg_unorm` * `BC6HRGBUfloat -> bc6_hrgb_ufloat` * `ASTC4x4UnormSrgb -> astc4x4_unorm_srgb` + * `maxTextureDimension3D -> max_texture_dimension_3d` * Sometimes an enum will begin with numbers, e.g. `WGPUTextureViewDimension_2DArray`. In this case, we add a prefix so instead of the enum field being `2d_array` it is `dimension_2d_array` (an enum field name must not start with a number in Zig.)