render: implement a vulkan renderer
This commit is contained in:
parent
4ba8550da8
commit
cf332e8436
66 changed files with 4287 additions and 239 deletions
9
src/gfx_apis/vulkan/shaders/tex.frag
Normal file
9
src/gfx_apis/vulkan/shaders/tex.frag
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#version 450
|
||||
|
||||
layout(set = 0, binding = 0) uniform sampler2D tex;
|
||||
layout(location = 0) in vec2 tex_pos;
|
||||
layout(location = 0) out vec4 out_color;
|
||||
|
||||
void main() {
|
||||
out_color = textureLod(tex, tex_pos, 0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue