File tree 3 files changed +17
-17
lines changed
servers/rendering/renderer_rd
3 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,8 @@ class SceneShaderForwardClustered {
100
100
101
101
struct ShaderSpecialization {
102
102
union {
103
+ uint32_t packed_0;
104
+
103
105
struct {
104
106
uint32_t use_forward_gi : 1 ;
105
107
uint32_t use_light_projector : 1 ;
@@ -114,31 +116,29 @@ class SceneShaderForwardClustered {
114
116
uint32_t directional_soft_shadow_samples : 6 ;
115
117
uint32_t directional_penumbra_shadow_samples : 6 ;
116
118
};
117
-
118
- uint32_t packed_0;
119
119
};
120
120
121
121
union {
122
+ uint32_t packed_1;
123
+
122
124
struct {
123
125
uint32_t multimesh : 1 ;
124
126
uint32_t multimesh_format_2d : 1 ;
125
127
uint32_t multimesh_has_color : 1 ;
126
128
uint32_t multimesh_has_custom_data : 1 ;
127
129
};
128
-
129
- uint32_t packed_1;
130
130
};
131
131
132
132
uint32_t packed_2;
133
133
};
134
134
135
135
struct UbershaderConstants {
136
136
union {
137
+ uint32_t packed_0;
138
+
137
139
struct {
138
140
uint32_t cull_mode : 2 ;
139
141
};
140
-
141
- uint32_t packed_0;
142
142
};
143
143
};
144
144
Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ class SceneShaderForwardMobile {
59
59
60
60
struct ShaderSpecialization {
61
61
union {
62
+ uint32_t packed_0;
63
+
62
64
struct {
63
65
uint32_t use_light_projector : 1 ;
64
66
uint32_t use_light_soft_shadows : 1 ;
@@ -82,11 +84,11 @@ class SceneShaderForwardMobile {
82
84
uint32_t soft_shadow_samples : 6 ;
83
85
uint32_t penumbra_shadow_samples : 6 ;
84
86
};
85
-
86
- uint32_t packed_0;
87
87
};
88
88
89
89
union {
90
+ uint32_t packed_1;
91
+
90
92
struct {
91
93
uint32_t directional_soft_shadow_samples : 6 ;
92
94
uint32_t directional_penumbra_shadow_samples : 6 ;
@@ -96,32 +98,30 @@ class SceneShaderForwardMobile {
96
98
uint32_t directional_lights : 4 ;
97
99
uint32_t decals : 4 ;
98
100
};
99
-
100
- uint32_t packed_1;
101
101
};
102
102
103
103
union {
104
+ uint32_t packed_2;
105
+
104
106
struct {
105
107
uint32_t directional_light_blend_splits : 8 ;
106
108
uint32_t padding_1 : 24 ;
107
109
};
108
-
109
- uint32_t packed_2;
110
110
};
111
111
112
112
union {
113
- float luminance_multiplier;
114
113
float packed_3;
114
+ float luminance_multiplier;
115
115
};
116
116
};
117
117
118
118
struct UbershaderConstants {
119
119
union {
120
+ uint32_t packed_0;
121
+
120
122
struct {
121
123
uint32_t cull_mode : 2 ;
122
124
};
123
-
124
- uint32_t packed_0;
125
125
};
126
126
127
127
uint32_t padding_1;
Original file line number Diff line number Diff line change @@ -116,11 +116,11 @@ class RendererCanvasRenderRD : public RendererCanvasRender {
116
116
117
117
struct ShaderSpecialization {
118
118
union {
119
+ uint32_t packed_0;
120
+
119
121
struct {
120
122
uint32_t use_lighting : 1 ;
121
123
};
122
-
123
- uint32_t packed_0;
124
124
};
125
125
};
126
126
You can’t perform that action at this time.
0 commit comments