Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit dbcbd68

Browse files
committed
moved away from float16 for the uniform
1 parent 204806b commit dbcbd68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

impeller/entity/shaders/gaussian_blur/kernel.glsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
uniform f16sampler2D texture_sampler;
1111

1212
struct KernelSample {
13-
f16vec2 uv_offset;
14-
float16_t coefficient;
13+
vec2 uv_offset;
14+
float coefficient;
1515
};
1616

1717
uniform KernelSamples {
@@ -36,7 +36,7 @@ void main() {
3636
f16vec4 total_color = f16vec4(0.0hf);
3737

3838
for (int i = 0; i < blur_info.sample_count; ++i) {
39-
float16_t coefficient = blur_info.samples[i].coefficient;
39+
float16_t coefficient = float16_t(blur_info.samples[i].coefficient);
4040
total_color +=
4141
coefficient * Sample(texture_sampler,
4242
v_texture_coords + blur_info.samples[i].uv_offset);

0 commit comments

Comments
 (0)