You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
This commit is contained in:
@@ -40,7 +40,6 @@
|
||||
#include "servers/rendering/rendering_device.h"
|
||||
|
||||
class RasterizerCanvasRD : public RasterizerCanvas {
|
||||
|
||||
RasterizerStorageRD *storage;
|
||||
|
||||
enum ShaderVariant {
|
||||
@@ -149,7 +148,6 @@ class RasterizerCanvasRD : public RasterizerCanvas {
|
||||
} shader;
|
||||
|
||||
struct ShaderData : public RasterizerStorageRD::ShaderData {
|
||||
|
||||
enum BlendMode { //used internally
|
||||
BLEND_MODE_MIX,
|
||||
BLEND_MODE_ADD,
|
||||
@@ -313,7 +311,6 @@ class RasterizerCanvasRD : public RasterizerCanvas {
|
||||
/******************/
|
||||
|
||||
struct CanvasLight {
|
||||
|
||||
RID texture;
|
||||
struct {
|
||||
int size;
|
||||
@@ -333,7 +330,6 @@ class RasterizerCanvasRD : public RasterizerCanvas {
|
||||
};
|
||||
|
||||
struct OccluderPolygon {
|
||||
|
||||
RS::CanvasOccluderPolygonCullMode cull_mode;
|
||||
int point_count;
|
||||
RID vertex_buffer;
|
||||
@@ -371,7 +367,6 @@ class RasterizerCanvasRD : public RasterizerCanvas {
|
||||
//state that does not vary across rendering all items
|
||||
|
||||
struct ItemStateData : public Item::CustomData {
|
||||
|
||||
struct LightCache {
|
||||
uint64_t light_version;
|
||||
Light *light;
|
||||
@@ -382,7 +377,6 @@ class RasterizerCanvasRD : public RasterizerCanvas {
|
||||
RID state_uniform_set_with_light;
|
||||
RID state_uniform_set;
|
||||
ItemStateData() {
|
||||
|
||||
for (int i = 0; i < DEFAULT_MAX_LIGHTS_PER_ITEM; i++) {
|
||||
light_cache[i].light_version = 0;
|
||||
light_cache[i].light = nullptr;
|
||||
@@ -401,7 +395,6 @@ class RasterizerCanvasRD : public RasterizerCanvas {
|
||||
};
|
||||
|
||||
struct State {
|
||||
|
||||
//state buffer
|
||||
struct Buffer {
|
||||
float canvas_transform[16];
|
||||
|
||||
Reference in New Issue
Block a user