Cleanup: spelling in comments
This commit is contained in:
parent
0e0139b304
commit
02226e9069
|
@ -51,7 +51,7 @@ inline bool call_with_devirtualized_parameters(const std::tuple<Devirtualizers..
|
|||
const Fn &fn)
|
||||
{
|
||||
/* In theory the code below could be generalized to avoid code duplication. However, the maximum
|
||||
* number of parameters is expected to be relatively low. Explicitely implementing the different
|
||||
* number of parameters is expected to be relatively low. Explicitly implementing the different
|
||||
* cases makes it more obvious to see what is going on and also makes inlining everything easier
|
||||
* for the compiler. */
|
||||
constexpr size_t DeviNum = sizeof...(Devirtualizers);
|
||||
|
|
|
@ -16,8 +16,8 @@ namespace detail {
|
|||
/**
|
||||
* Rotation Types
|
||||
*
|
||||
* It gives more semantic informations allowing overloaded functions based on the rotation
|
||||
* type. It also prevent implicit cast from rotation to vector types.
|
||||
* It gives more semantic information allowing overloaded functions based on the rotation type.
|
||||
* It also prevent implicit cast from rotation to vector types.
|
||||
*/
|
||||
|
||||
/* Forward declaration. */
|
||||
|
|
|
@ -2951,8 +2951,8 @@ static int frame_offset_exec(bContext *C, wmOperator *op)
|
|||
|
||||
int delta = RNA_int_get(op->ptr, "delta");
|
||||
|
||||
/* In order to jump from e.g. 1.5 to 1 the delta needs to be incremented by 1 since the subframe
|
||||
* is always zeroed. Otherwise it would jump to 0.*/
|
||||
/* In order to jump from e.g. 1.5 to 1 the delta needs to be incremented by 1 since the sub-frame
|
||||
* is always zeroed. Otherwise it would jump to 0. */
|
||||
if (delta < 0 && scene->r.subframe > 0) {
|
||||
delta += 1;
|
||||
}
|
||||
|
|
|
@ -139,7 +139,7 @@ execute_array(TypeSequence<ParamTags...> /*param_tags*/,
|
|||
Args &&__restrict... args)
|
||||
{
|
||||
if constexpr (std::is_same_v<std::decay_t<MaskT>, IndexRange>) {
|
||||
/* Having this explicit loop is necessary for msvc to be able to vectorize this. */
|
||||
/* Having this explicit loop is necessary for MSVC to be able to vectorize this. */
|
||||
const int64_t start = mask.start();
|
||||
const int64_t end = mask.one_after_last();
|
||||
for (int64_t i = start; i < end; i++) {
|
||||
|
|
|
@ -44,7 +44,7 @@ typedef enum eGPUTextureType {
|
|||
ENUM_OPERATORS(eGPUTextureType, GPU_TEXTURE_CUBE_ARRAY)
|
||||
|
||||
/* Format types for samplers within the shader.
|
||||
* This covers the sampler format type permutations within GLSL/MSL.*/
|
||||
* This covers the sampler format type permutations within GLSL/MSL. */
|
||||
typedef enum eGPUSamplerFormat {
|
||||
GPU_SAMPLER_TYPE_FLOAT = 0,
|
||||
GPU_SAMPLER_TYPE_INT = 1,
|
||||
|
@ -478,7 +478,7 @@ inline size_t to_bytesize(eGPUDataFormat data_format)
|
|||
inline size_t to_bytesize(eGPUTextureFormat tex_format, eGPUDataFormat data_format)
|
||||
{
|
||||
/* Special case for compacted types.
|
||||
* Standard component len calcualtion does not apply, as the texture formats contain multiple
|
||||
* Standard component len calculation does not apply, as the texture formats contain multiple
|
||||
* channels, but associated data format contains several compacted components. */
|
||||
if ((tex_format == GPU_R11F_G11F_B10F && data_format == GPU_DATA_10_11_11_REV) ||
|
||||
(tex_format == GPU_RGB10_A2 && data_format == GPU_DATA_2_10_10_10_REV)) {
|
||||
|
|
|
@ -813,7 +813,7 @@ typedef enum eRNAOverrideMatchResult {
|
|||
*/
|
||||
RNA_OVERRIDE_MATCH_RESULT_CREATED = 1 << 0,
|
||||
/**
|
||||
* Some properties are illegaly different from their reference values and have been tagged for
|
||||
* Some properties are illegally different from their reference values and have been tagged for
|
||||
* restoration.
|
||||
*/
|
||||
RNA_OVERRIDE_MATCH_RESULT_RESTORE_TAGGED = 1 << 1,
|
||||
|
|
|
@ -821,7 +821,7 @@ bool RNA_struct_override_matches(Main *bmain,
|
|||
/* This property should be restored to its reference value. This should not be done
|
||||
* here, since this code may be called from non-main thread (modifying data through RNA
|
||||
* is not thread safe). */
|
||||
BLI_assert(op == NULL); /* Forbidden orverride prop should not exist currently. */
|
||||
BLI_assert(op == NULL); /* Forbidden override prop should not exist currently. */
|
||||
|
||||
if (do_restore) {
|
||||
IDOverrideLibraryPropertyOperation opop_tmp = {
|
||||
|
|
Loading…
Reference in New Issue