|
@@ -59,6 +59,8 @@ public:
|
|
|
|
|
|
struct ShaderSpecialization {
|
|
struct ShaderSpecialization {
|
|
union {
|
|
union {
|
|
|
|
+ uint32_t packed_0;
|
|
|
|
+
|
|
struct {
|
|
struct {
|
|
uint32_t use_light_projector : 1;
|
|
uint32_t use_light_projector : 1;
|
|
uint32_t use_light_soft_shadows : 1;
|
|
uint32_t use_light_soft_shadows : 1;
|
|
@@ -82,11 +84,11 @@ public:
|
|
uint32_t soft_shadow_samples : 6;
|
|
uint32_t soft_shadow_samples : 6;
|
|
uint32_t penumbra_shadow_samples : 6;
|
|
uint32_t penumbra_shadow_samples : 6;
|
|
};
|
|
};
|
|
-
|
|
|
|
- uint32_t packed_0;
|
|
|
|
};
|
|
};
|
|
|
|
|
|
union {
|
|
union {
|
|
|
|
+ uint32_t packed_1;
|
|
|
|
+
|
|
struct {
|
|
struct {
|
|
uint32_t directional_soft_shadow_samples : 6;
|
|
uint32_t directional_soft_shadow_samples : 6;
|
|
uint32_t directional_penumbra_shadow_samples : 6;
|
|
uint32_t directional_penumbra_shadow_samples : 6;
|
|
@@ -96,32 +98,30 @@ public:
|
|
uint32_t directional_lights : 4;
|
|
uint32_t directional_lights : 4;
|
|
uint32_t decals : 4;
|
|
uint32_t decals : 4;
|
|
};
|
|
};
|
|
-
|
|
|
|
- uint32_t packed_1;
|
|
|
|
};
|
|
};
|
|
|
|
|
|
union {
|
|
union {
|
|
|
|
+ uint32_t packed_2;
|
|
|
|
+
|
|
struct {
|
|
struct {
|
|
uint32_t directional_light_blend_splits : 8;
|
|
uint32_t directional_light_blend_splits : 8;
|
|
uint32_t padding_1 : 24;
|
|
uint32_t padding_1 : 24;
|
|
};
|
|
};
|
|
-
|
|
|
|
- uint32_t packed_2;
|
|
|
|
};
|
|
};
|
|
|
|
|
|
union {
|
|
union {
|
|
- float luminance_multiplier;
|
|
|
|
float packed_3;
|
|
float packed_3;
|
|
|
|
+ float luminance_multiplier;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
|
|
struct UbershaderConstants {
|
|
struct UbershaderConstants {
|
|
union {
|
|
union {
|
|
|
|
+ uint32_t packed_0;
|
|
|
|
+
|
|
struct {
|
|
struct {
|
|
uint32_t cull_mode : 2;
|
|
uint32_t cull_mode : 2;
|
|
};
|
|
};
|
|
-
|
|
|
|
- uint32_t packed_0;
|
|
|
|
};
|
|
};
|
|
|
|
|
|
uint32_t padding_1;
|
|
uint32_t padding_1;
|