Symbol UBOs fixes (#2331)
This commit is contained in:
@@ -152,15 +152,6 @@ lowp float opacity = u_opacity;
|
||||
)";
|
||||
static constexpr const char* fragment = R"(uniform sampler2D u_texture;
|
||||
|
||||
layout (std140) uniform SymbolInterpolateUBO {
|
||||
highp float u_fill_color_t;
|
||||
highp float u_halo_color_t;
|
||||
highp float u_opacity_t;
|
||||
highp float u_halo_width_t;
|
||||
highp float u_halo_blur_t;
|
||||
highp float interp_pad1, interp_pad2,interp_pad3;
|
||||
};
|
||||
|
||||
layout (std140) uniform SymbolTilePropsUBO {
|
||||
bool u_is_text;
|
||||
bool u_is_halo;
|
||||
|
||||
@@ -233,15 +233,6 @@ layout (std140) uniform SymbolTilePropsUBO {
|
||||
bool tileprops_pad1;
|
||||
};
|
||||
|
||||
layout (std140) uniform SymbolInterpolateUBO {
|
||||
highp float u_fill_color_t;
|
||||
highp float u_halo_color_t;
|
||||
highp float u_opacity_t;
|
||||
highp float u_halo_width_t;
|
||||
highp float u_halo_blur_t;
|
||||
highp float interp_pad1, interp_pad2, interp_pad3;
|
||||
};
|
||||
|
||||
layout (std140) uniform SymbolEvaluatedPropsUBO {
|
||||
highp vec4 u_text_fill_color;
|
||||
highp vec4 u_text_halo_color;
|
||||
|
||||
@@ -236,15 +236,6 @@ layout (std140) uniform SymbolTilePropsUBO {
|
||||
bool tileprops_pad1;
|
||||
};
|
||||
|
||||
layout (std140) uniform SymbolInterpolateUBO {
|
||||
highp float u_fill_color_t;
|
||||
highp float u_halo_color_t;
|
||||
highp float u_opacity_t;
|
||||
highp float u_halo_width_t;
|
||||
highp float u_halo_blur_t;
|
||||
highp float interp_pad1, interp_pad2,interp_pad3;
|
||||
};
|
||||
|
||||
layout (std140) uniform SymbolEvaluatedPropsUBO {
|
||||
highp vec4 u_text_fill_color;
|
||||
highp vec4 u_text_halo_color;
|
||||
|
||||
@@ -49,8 +49,7 @@ FragmentStage vertex vertexMain(thread const VertexStage vertx [[stage_in]],
|
||||
device const GlobalPaintParamsUBO& paintParams [[buffer(0)]],
|
||||
device const SymbolDrawableUBO& drawable [[buffer(1)]],
|
||||
device const SymbolTilePropsUBO& tileprops [[buffer(2)]],
|
||||
device const SymbolInterpolateUBO& interp [[buffer(3)]],
|
||||
device const SymbolEvaluatedPropsUBO& paint [[buffer(4)]]) {
|
||||
device const SymbolInterpolateUBO& interp [[buffer(3)]]) {
|
||||
|
||||
const float2 a_pos = vertx.pos_offset.xy;
|
||||
const float2 a_offset = vertx.pos_offset.zw;
|
||||
@@ -123,7 +122,6 @@ FragmentStage vertex vertexMain(thread const VertexStage vertx [[stage_in]],
|
||||
}
|
||||
|
||||
half4 fragment fragmentMain(FragmentStage in [[stage_in]],
|
||||
device const SymbolDrawableUBO& drawable [[buffer(1)]],
|
||||
device const SymbolTilePropsUBO& tileprops [[buffer(2)]],
|
||||
device const SymbolEvaluatedPropsUBO& props [[buffer(4)]],
|
||||
texture2d<float, access::sample> image [[texture(0)]],
|
||||
|
||||
@@ -74,8 +74,7 @@ FragmentStage vertex vertexMain(thread const VertexStage vertx [[stage_in]],
|
||||
device const GlobalPaintParamsUBO& paintParams [[buffer(0)]],
|
||||
device const SymbolDrawableUBO& drawable [[buffer(1)]],
|
||||
device const SymbolTilePropsUBO& tileprops [[buffer(2)]],
|
||||
device const SymbolInterpolateUBO& interp [[buffer(3)]],
|
||||
device const SymbolEvaluatedPropsUBO& props [[buffer(4)]]) {
|
||||
device const SymbolInterpolateUBO& interp [[buffer(3)]]) {
|
||||
|
||||
const float2 a_pos = vertx.pos_offset.xy;
|
||||
const float2 a_offset = vertx.pos_offset.zw;
|
||||
|
||||
@@ -78,8 +78,7 @@ FragmentStage vertex vertexMain(thread const VertexStage vertx [[stage_in]],
|
||||
device const GlobalPaintParamsUBO& paintParams [[buffer(0)]],
|
||||
device const SymbolDrawableUBO& drawable [[buffer(1)]],
|
||||
device const SymbolTilePropsUBO& tileprops [[buffer(2)]],
|
||||
device const SymbolInterpolateUBO& interp [[buffer(3)]],
|
||||
device const SymbolEvaluatedPropsUBO& props [[buffer(4)]]) {
|
||||
device const SymbolInterpolateUBO& interp [[buffer(3)]]) {
|
||||
|
||||
const float2 a_pos = vertx.pos_offset.xy;
|
||||
const float2 a_offset = vertx.pos_offset.zw;
|
||||
|
||||
Reference in New Issue
Block a user