Cleanup: spelling in comments

This commit is contained in:
Campbell Barton 2022-08-11 09:44:33 +10:00
parent d68018cf10
commit 32c8a28720
9 changed files with 17 additions and 17 deletions

View File

@ -109,7 +109,7 @@ typedef struct IDTypeInfo {
*/
short id_code;
/**
* Bitflag matching id_code, used for filtering (e.g. in file browser), see DNA_ID.h's
* Bit-flag matching id_code, used for filtering (e.g. in file browser), see DNA_ID.h's
* FILTER_ID_XX enums.
*/
uint64_t id_filter;

View File

@ -163,7 +163,7 @@ TEST(cryptomatte, session_from_stamp_data)
* best as possible. */
TEST(cryptomatte, parsing_malformed_manifests)
{
/* Manifest from multilayer.exr in the cryptomatte git-repository. */
/* Manifest from `multilayer.exr` in the cryptomatte git-repository. */
test_cryptomatte_manifest(
R"({"/obj/instance1:instances:0":"0d54c6cc","/obj/instance1:instances:1":"293d9340","/obj/instance1:instances:110":"ccb9e1f2","/obj/instance1:instances:111":"f8dd3a48","/obj/instance1:instances:112":"a99e07a8","/obj/instance1:instances:113":"e75599a4","/obj/instance1:instances:114":"794200f3","/obj/instance1:instances:115":"2a3a1728","/obj/instance1:instances:116":"478544a1","/obj/instance1:instances:117":"b2bd969a","/obj/instance1:instances:10":"3a0c8681","/obj/instance1:instances:11":"01e5970d","/obj/box:polygons:1":"9d416418","/obj/instance1:instances:100":"2dcd2966","/obj/instance1:instances:101":"9331cd82","/obj/instance1:instances:102":"df50fccb","/obj/instance1:instances:103":"97f8590d","/obj/instance1:instances:104":"bbcd220d","/obj/instance1:instances:105":"4ae06139","/obj/instance1:instances:106":"8873d5ea","/obj/instance1:instances:107":"39d8af8d","/obj/instance1:instances:108":"bb11bd4e","/obj/instance1:instances:109":"a32bba35"})",
R"({"\/obj\/box:polygons:1":"9d416418","\/obj\/instance1:instances:0":"0d54c6cc","\/obj\/instance1:instances:1":"293d9340","\/obj\/instance1:instances:10":"3a0c8681","\/obj\/instance1:instances:100":"2dcd2966","\/obj\/instance1:instances:101":"9331cd82","\/obj\/instance1:instances:102":"df50fccb","\/obj\/instance1:instances:103":"97f8590d","\/obj\/instance1:instances:104":"bbcd220d","\/obj\/instance1:instances:105":"4ae06139","\/obj\/instance1:instances:106":"8873d5ea","\/obj\/instance1:instances:107":"39d8af8d","\/obj\/instance1:instances:108":"bb11bd4e","\/obj\/instance1:instances:109":"a32bba35","\/obj\/instance1:instances:11":"01e5970d","\/obj\/instance1:instances:110":"ccb9e1f2","\/obj\/instance1:instances:111":"f8dd3a48","\/obj\/instance1:instances:112":"a99e07a8","\/obj\/instance1:instances:113":"e75599a4","\/obj\/instance1:instances:114":"794200f3","\/obj\/instance1:instances:115":"2a3a1728","\/obj\/instance1:instances:116":"478544a1","\/obj\/instance1:instances:117":"b2bd969a","\/obj\/instance1:instance)");

View File

@ -74,7 +74,7 @@ void MovieClipBaseOperation::execute_pixel_sampled(float output[4],
zero_v4(output);
}
else if (ibuf->rect == nullptr && ibuf->rect_float == nullptr) {
/* Happens for multilayer exr, i.e. */
/* Happens for multi-layer EXR, i.e. */
zero_v4(output);
}
else {

View File

@ -225,8 +225,8 @@ void ShaderOperation::declare_operation_input(DInputSocket input_socket,
/* Add a new GPU attribute representing an input to the GPU material. Instead of using the
* attribute directly, we link it to an appropriate set function and use its output link instead.
* This is needed because the gputype member of the attribute is only initialized if it is linked
* to a GPU node. */
* This is needed because the `gputype` member of the attribute is only initialized if it is
* linked to a GPU node. */
GPUNodeLink *attribute_link;
GPU_link(material,
get_set_function_name(input_descriptor.type),

View File

@ -227,7 +227,7 @@ void OperationNode::tag_update(Depsgraph *graph, eUpdateSource source)
* the evaluated clues that evaluation needs to happen again. */
graph->add_entry_tag(this);
/* Enforce dynamic visibility codepath update.
/* Enforce dynamic visibility code-path update.
* This ensures visibility flags are consistently propagated throughout the dependency graph when
* there is no animated visibility in the graph.
*

View File

@ -154,7 +154,7 @@ BLI_STATIC_ASSERT_ALIGN(DispatchCommand, 16)
* But we use plain array in shader code instead because of driver issues. */
struct DRWDebugPrintBuffer {
DrawCommand command;
/** Each character is encoded as 3 uchar with char_index, row and column position. */
/** Each character is encoded as 3 `uchar` with char_index, row and column position. */
uint char_array[DRW_DEBUG_PRINT_MAX];
};
BLI_STATIC_ASSERT_ALIGN(DRWDebugPrintBuffer, 16)

View File

@ -9,7 +9,7 @@
namespace blender::gpu {
static const size_t VISIBILITY_COUNT_PER_BUFFER = 512;
/* defined in the documentation but not queryable programmatically:
/* Defined in the documentation but can't be queried programmatically:
* https://developer.apple.com/documentation/metal/mtlvisibilityresultmode/mtlvisibilityresultmodeboolean?language=objc
*/
static const size_t VISIBILITY_RESULT_SIZE_IN_BYTES = 8;

View File

@ -251,11 +251,11 @@ typedef struct ImBuf {
int refcounter;
/* some parameters to pass along for packing images */
/** Compressed image only used with png and exr currently */
/** Compressed image only used with PNG and EXR currently */
unsigned char *encodedbuffer;
/** Size of data written to encodedbuffer */
/** Size of data written to `encodedbuffer`. */
unsigned int encodedsize;
/** Size of encodedbuffer */
/** Size of `encodedbuffer` */
unsigned int encodedbuffersize;
/* color management */

View File

@ -1838,37 +1838,37 @@ enum {
/* viewer and composite output. */
#define CMP_NODE_OUTPUT_IGNORE_ALPHA 1
/* Split Viewer Node. Stored in custom2. */
/** Split Viewer Node. Stored in `custom2`. */
typedef enum CMPNodeSplitViewerAxis {
CMP_NODE_SPLIT_VIEWER_HORIZONTAL = 0,
CMP_NODE_SPLIT_VIEWER_VERTICAL = 1,
} CMPNodeSplitViewerAxis;
/* Color Balance Node. Stored in custom1. */
/** Color Balance Node. Stored in `custom1`. */
typedef enum CMPNodeColorBalanceMethod {
CMP_NODE_COLOR_BALANCE_LGG = 0,
CMP_NODE_COLOR_BALANCE_ASC_CDL = 1,
} CMPNodeColorBalanceMethod;
/* Alpha Convert Node. Stored in custom1. */
/** Alpha Convert Node. Stored in `custom1`. */
typedef enum CMPNodeAlphaConvertMode {
CMP_NODE_ALPHA_CONVERT_PREMULTIPLY = 0,
CMP_NODE_ALPHA_CONVERT_UNPREMULTIPLY = 1,
} CMPNodeAlphaConvertMode;
/* Distance Matte Node. Stored in NodeChroma.channel. */
/** Distance Matte Node. Stored in #NodeChroma.channel. */
typedef enum CMPNodeDistanceMatteColorSpace {
CMP_NODE_DISTANCE_MATTE_COLOR_SPACE_YCCA = 0,
CMP_NODE_DISTANCE_MATTE_COLOR_SPACE_RGBA = 1,
} CMPNodeDistanceMatteColorSpace;
/* Color Spill Node. Stored in custom2. */
/** Color Spill Node. Stored in `custom2`. */
typedef enum CMPNodeColorSpillLimitAlgorithm {
CMP_NODE_COLOR_SPILL_LIMIT_ALGORITHM_SINGLE = 0,
CMP_NODE_COLOR_SPILL_LIMIT_ALGORITHM_AVERAGE = 1,
} CMPNodeColorSpillLimitAlgorithm;
/* Channel Matte Node. Stored in NodeChroma.algorith. */
/** Channel Matte Node. Stored in #NodeChroma.algorithm. */
typedef enum CMPNodeChannelMatteLimitAlgorithm {
CMP_NODE_CHANNEL_MATTE_LIMIT_ALGORITHM_SINGLE = 0,
CMP_NODE_CHANNEL_MATTE_LIMIT_ALGORITHM_MAX = 1,