You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Style: Misc docs and comment style and language fixes
- Removed empty paragraphs in XML. - Consistently use bold style for "Example:", on a new line. - Fix usage of `[code]` when hyperlinks could be used (`[member]`, `[constant]`). - Fix invalid usage of backticks for inline code in BBCode. - Fix some American/British English spelling inconsistencies. - Other minor fixes spotted along the way, including typo fixes with codespell. - Don't specify `@GlobalScope` for `enum` and `constant`.
This commit is contained in:
@@ -361,7 +361,7 @@ void SkyRD::ReflectionData::update_reflection_data(int p_size, int p_mipmaps, bo
|
||||
uint32_t w = p_size, h = p_size;
|
||||
|
||||
EffectsRD *effects = RendererCompositorRD::singleton->get_effects();
|
||||
ERR_FAIL_NULL_MSG(effects, "Effects haven't been initialised");
|
||||
ERR_FAIL_NULL_MSG(effects, "Effects haven't been initialized");
|
||||
bool prefer_raster_effects = effects->get_prefer_raster_effects();
|
||||
|
||||
if (p_use_array) {
|
||||
@@ -465,7 +465,7 @@ void SkyRD::ReflectionData::update_reflection_data(int p_size, int p_mipmaps, bo
|
||||
|
||||
void SkyRD::ReflectionData::create_reflection_fast_filter(bool p_use_arrays) {
|
||||
RendererRD::CopyEffects *copy_effects = RendererRD::CopyEffects::get_singleton();
|
||||
ERR_FAIL_NULL_MSG(copy_effects, "Effects haven't been initialised");
|
||||
ERR_FAIL_NULL_MSG(copy_effects, "Effects haven't been initialized");
|
||||
bool prefer_raster_effects = copy_effects->get_prefer_raster_effects();
|
||||
|
||||
if (prefer_raster_effects) {
|
||||
@@ -523,7 +523,7 @@ void SkyRD::ReflectionData::create_reflection_fast_filter(bool p_use_arrays) {
|
||||
|
||||
void SkyRD::ReflectionData::create_reflection_importance_sample(bool p_use_arrays, int p_cube_side, int p_base_layer, uint32_t p_sky_ggx_samples_quality) {
|
||||
RendererRD::CopyEffects *copy_effects = RendererRD::CopyEffects::get_singleton();
|
||||
ERR_FAIL_NULL_MSG(copy_effects, "Effects haven't been initialised");
|
||||
ERR_FAIL_NULL_MSG(copy_effects, "Effects haven't been initialized");
|
||||
bool prefer_raster_effects = copy_effects->get_prefer_raster_effects();
|
||||
|
||||
if (prefer_raster_effects) {
|
||||
@@ -592,7 +592,7 @@ void SkyRD::ReflectionData::create_reflection_importance_sample(bool p_use_array
|
||||
|
||||
void SkyRD::ReflectionData::update_reflection_mipmaps(int p_start, int p_end) {
|
||||
RendererRD::CopyEffects *copy_effects = RendererRD::CopyEffects::get_singleton();
|
||||
ERR_FAIL_NULL_MSG(copy_effects, "Effects haven't been initialised");
|
||||
ERR_FAIL_NULL_MSG(copy_effects, "Effects haven't been initialized");
|
||||
bool prefer_raster_effects = copy_effects->get_prefer_raster_effects();
|
||||
|
||||
RD::get_singleton()->draw_command_begin_label("Update Radiance Cubemap Array Mipmaps");
|
||||
|
||||
Reference in New Issue
Block a user