Commit c00f3f64 authored by Shu's avatar Shu 🍠
Browse files

Vulkan basic buffer allocator

parent 41eb6368
......@@ -19,9 +19,10 @@
namespace tracy
{
class VkCtxScope {};
class VkCtx;
}
using TracyVkCtx = void*;
using TracyVkCtx = tracy::VkCtx*;
#else
......
#version 450 core
#extension GL_ARB_separate_shader_objects : enable
layout(location = 0) in vec4 Color;
layout(location = 0) out vec4 color;
void main(){
color = vec4(Color.xyz, .5);
}
\ No newline at end of file
#version 450 core
layout(push_constant) uniform PushConstants {
mat4 MVP;
} Push;
layout(location = 0) in vec3 Position_modelspace;
layout(location = 1) in vec4 Color_model;
layout(location = 0) out vec4 Color;
void main(){
gl_Position = Push.MVP * vec4(Position_modelspace, 1);
Color = Color_model;
}
#version 450 core
#extension GL_ARB_separate_shader_objects : enable
layout(binding = 1) uniform samplerCube Texture;
layout(location = 0) in vec3 UV;
layout(location = 0) out vec4 color;
void main(){
color = texture(Texture, UV);
}
\ No newline at end of file
#version 450 core
layout(push_constant) uniform PushConstants {
mat4 View;
mat4 Projection;
} Push;
layout (location = 0) in vec3 Position_modelspace;
layout (location = 0) out vec3 UV;
void main(){
UV = Position_modelspace;
gl_Position = (Push.Projection * Push.View * vec4(Position_modelspace, 1.0)).xyww;
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment