diff options
author | Campbell Barton <campbell@blender.org> | 2022-11-01 04:24:06 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-11-01 04:24:58 +0300 |
commit | afc091c3c4bc86d4bb6165cbcdc9f17129d743e8 (patch) | |
tree | 326fb5d27d4393bacad193b297b0386751a31993 /source/blender/gpu | |
parent | ef76a67153c9670b42f3f8091bbf41388c5bbd73 (diff) |
Cleanup: spelling in comments
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/metal/mtl_shader_generator.hh | 2 | ||||
-rw-r--r-- | source/blender/gpu/metal/mtl_texture_util.mm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/metal/mtl_shader_generator.hh b/source/blender/gpu/metal/mtl_shader_generator.hh index 43890ca0170..63e2e6d5924 100644 --- a/source/blender/gpu/metal/mtl_shader_generator.hh +++ b/source/blender/gpu/metal/mtl_shader_generator.hh @@ -497,7 +497,7 @@ inline std::string get_stage_class_name(ShaderStage stage) inline bool is_builtin_type(std::string type) { /* Add Types as needed. */ - /* TODO(Metal): Consider replacing this with a switch and constexpr hash and switch. + /* TODO(Metal): Consider replacing this with a switch and `constexpr` hash and switch. * Though most efficient and maintainable approach to be determined. */ static std::map<std::string, eMTLDataType> glsl_builtin_types = { {"float", MTL_DATATYPE_FLOAT}, diff --git a/source/blender/gpu/metal/mtl_texture_util.mm b/source/blender/gpu/metal/mtl_texture_util.mm index 5ed7659f260..33a62e2e3ef 100644 --- a/source/blender/gpu/metal/mtl_texture_util.mm +++ b/source/blender/gpu/metal/mtl_texture_util.mm @@ -34,7 +34,7 @@ MTLPixelFormat gpu_texture_format_to_metal(eGPUTextureFormat tex_format) { switch (tex_format) { - /* Formats texture & renderbuffer. */ + /* Formats texture & render-buffer. */ case GPU_RGBA8UI: return MTLPixelFormatRGBA8Uint; case GPU_RGBA8I: |