tweak renderer API
This commit is contained in:
parent
177e52b0d0
commit
2014c67bfd
10 changed files with 424 additions and 247 deletions
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
layout(set = 1, binding = 0) uniform Viewport {
|
||||
ivec2 view;
|
||||
ivec2 not_needed;
|
||||
};
|
||||
|
||||
layout(location = 0) in ivec2 position;
|
||||
|
|
@ -10,6 +9,7 @@ layout(location = 1) in ivec2 in_uv;
|
|||
layout(location = 2) in ivec4 color;
|
||||
|
||||
layout(location = 0) out vec2 out_uv;
|
||||
layout(location = 1) out vec4 out_color;
|
||||
|
||||
void main()
|
||||
{
|
||||
|
|
@ -19,4 +19,5 @@ void main()
|
|||
gl_Position = vec4(pos, 0.0, 1.0);
|
||||
|
||||
out_uv = vec2(float(in_uv.x), float(in_uv.y));
|
||||
out_color = vec4(color) / 255.0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue