[glsl-out] Set precision for image type

This commit is contained in:
Igor Shaposhnik 2021-03-05 19:44:18 +00:00 committed by Dzmitry Malyshau
parent 50e5904add
commit d1c47d1705
3 changed files with 3 additions and 3 deletions

View File

@ -669,7 +669,7 @@ impl<'a, W: Write> Writer<'a, W> {
write!(
self.out,
"{}{}{}{}{}{}",
"highp {}{}{}{}{}{}",
glsl_scalar(kind, 4)?.prefix,
base,
glsl_dimension(dim),

View File

@ -8,7 +8,7 @@ precision highp float;
in vec2 _location_0_vs;
uniform sampler2D _group_0_binding_0;
uniform highp sampler2D _group_0_binding_0;
out vec4 _location_0;

View File

@ -11,7 +11,7 @@ struct Data {
mat4x4 view;
};
uniform samplerCube _group_0_binding_1;
uniform highp samplerCube _group_0_binding_1;
in vec3 _location_0_vs;