aboutsummaryrefslogtreecommitdiff
path: root/stockton-render/src/draw/ui
diff options
context:
space:
mode:
Diffstat (limited to 'stockton-render/src/draw/ui')
-rw-r--r--stockton-render/src/draw/ui/data/stockton.frag2
-rw-r--r--stockton-render/src/draw/ui/data/stockton.vert4
-rw-r--r--stockton-render/src/draw/ui/pipeline.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/stockton-render/src/draw/ui/data/stockton.frag b/stockton-render/src/draw/ui/data/stockton.frag
index e5b2b4d..77685cc 100644
--- a/stockton-render/src/draw/ui/data/stockton.frag
+++ b/stockton-render/src/draw/ui/data/stockton.frag
@@ -6,7 +6,7 @@ layout(set = 0, binding = 0) uniform texture2D tex[8];
layout(set = 0, binding = 1) uniform sampler samp[8];
layout (location = 1) in vec2 frag_uv;
-layout (location = 2) in flat int frag_col;
+layout (location = 2) in flat uint frag_col;
layout (location = 0) out vec4 color;
diff --git a/stockton-render/src/draw/ui/data/stockton.vert b/stockton-render/src/draw/ui/data/stockton.vert
index 7447fec..d84cc56 100644
--- a/stockton-render/src/draw/ui/data/stockton.vert
+++ b/stockton-render/src/draw/ui/data/stockton.vert
@@ -6,13 +6,13 @@ layout (push_constant) uniform PushConsts {
layout(location = 0) in vec2 pos;
layout (location = 1) in vec2 uv;
-layout (location = 2) in int col; // rgba of u8s
+layout (location = 2) in uint col; // rgba of u8s
out gl_PerVertex {
vec4 gl_Position;
};
layout (location = 1) out vec2 frag_uv;
-layout (location = 2) out int frag_col;
+layout (location = 2) out uint frag_col;
void main() {
gl_Position = vec4(
diff --git a/stockton-render/src/draw/ui/pipeline.rs b/stockton-render/src/draw/ui/pipeline.rs
index 3b643e4..878d8cd 100644
--- a/stockton-render/src/draw/ui/pipeline.rs
+++ b/stockton-render/src/draw/ui/pipeline.rs
@@ -187,7 +187,7 @@ impl UIPipeline {
let attributes: Vec<AttributeDesc> = pipeline_vb_attributes!(0,
size_of::<f32>() * 2; Rg32Sfloat,
size_of::<f32>() * 2; Rg32Sfloat,
- size_of::<u8>() * 4; Rgba8Uint
+ size_of::<u8>() * 4; R32Uint
);
// Rasterizer