diff options
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_codegen.cc | 2 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_index_buffer.cc | 4 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_shader_create_info.hh | 18 |
3 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.cc b/source/blender/gpu/intern/gpu_codegen.cc index b81345683b4..0102b8db5b2 100644 --- a/source/blender/gpu/intern/gpu_codegen.cc +++ b/source/blender/gpu/intern/gpu_codegen.cc @@ -355,7 +355,7 @@ void GPUCodegen::generate_resources() GPUCodegenCreateInfo &info = *create_info; /* Ref. T98190: Defines are optimizations for old compilers. - * Might become unecessary with EEVEE-Next. */ + * Might become unnecessary with EEVEE-Next. */ if (GPU_material_flag_get(&mat, GPU_MATFLAG_PRINCIPLED_CLEARCOAT)) { info.define("PRINCIPLED_CLEARCOAT"); } diff --git a/source/blender/gpu/intern/gpu_index_buffer.cc b/source/blender/gpu/intern/gpu_index_buffer.cc index 08c31d0d589..3a66f547403 100644 --- a/source/blender/gpu/intern/gpu_index_buffer.cc +++ b/source/blender/gpu/intern/gpu_index_buffer.cc @@ -49,7 +49,7 @@ void GPU_indexbuf_init_ex(GPUIndexBufBuilder *builder, * degenerative primitives when skipping primitives is required and will * incur no additional performance cost for rendering. */ if (GPU_type_matches_ex(GPU_DEVICE_ANY, GPU_OS_MAC, GPU_DRIVER_ANY, GPU_BACKEND_METAL)) { - /* We will still use restart-indices for point primtives and then + /* We will still use restart-indices for point primitives and then * patch these during IndexBuf::init, as we cannot benefit from degenerative * primitives to eliminate these. */ builder->restart_index_value = (is_restart_compatible(prim_type) || @@ -379,7 +379,7 @@ void IndexBuf::squeeze_indices_short(uint min_idx, * clamp index to the maximum within the index range. * * `clamp_max_idx` represents the maximum possible index to clamp against. If primitive is - * restart-compatible, we can just clamp against the primtive-restart value, otherwise, we + * restart-compatible, we can just clamp against the primitive-restart value, otherwise, we * must assign to a valid index within the range. * * NOTE: For OpenGL we skip this by disabling clamping, as we still need to use diff --git a/source/blender/gpu/intern/gpu_shader_create_info.hh b/source/blender/gpu/intern/gpu_shader_create_info.hh index 3884c067c83..25a79dd26ac 100644 --- a/source/blender/gpu/intern/gpu_shader_create_info.hh +++ b/source/blender/gpu/intern/gpu_shader_create_info.hh @@ -32,7 +32,7 @@ namespace blender::gpu::shader { #endif enum class Type { - /* Types supported natively across all GPU backends. */ + /* Types supported natively across all GPU back-ends. */ FLOAT = 0, VEC2, VEC3, @@ -48,12 +48,12 @@ enum class Type { IVEC3, IVEC4, BOOL, - /* Additionally supported types to enable data optimisation and native - * support in some GPUBackends. - * NOTE: These types must be representable in all APIs. E.g. VEC3_101010I2 is aliased as vec3 in - * the GL backend, as implicit type conversions from packed normal attribute data to vec3 is + /* Additionally supported types to enable data optimization and native + * support in some GPU back-ends. + * NOTE: These types must be representable in all APIs. E.g. `VEC3_101010I2` is aliased as vec3 + * in the GL back-end, as implicit type conversions from packed normal attribute data to vec3 is * supported. UCHAR/CHAR types are natively supported in Metal and can be used to avoid - * additional data conversions for GPU_COMP_U8 vertex attributes. */ + * additional data conversions for `GPU_COMP_U8` vertex attributes. */ VEC3_101010I2, UCHAR, UCHAR2, @@ -324,10 +324,10 @@ struct StageInterfaceInfo { /** * \brief Describe inputs & outputs, stage interfaces, resources and sources of a shader. * If all data is correctly provided, this is all that is needed to create and compile - * a GPUShader. + * a #GPUShader. * * IMPORTANT: All strings are references only. Make sure all the strings used by a - * ShaderCreateInfo are not freed until it is consumed or deleted. + * #ShaderCreateInfo are not freed until it is consumed or deleted. */ struct ShaderCreateInfo { /** Shader name for debugging. */ @@ -346,7 +346,7 @@ struct ShaderCreateInfo { DepthWrite depth_write_ = DepthWrite::ANY; /** * Maximum length of all the resource names including each null terminator. - * Only for names used by gpu::ShaderInterface. + * Only for names used by #gpu::ShaderInterface. */ size_t interface_names_size_ = 0; /** Manually set builtins. */ |