Commit 789ad026 by Philipp Adolf

Add shader for vertex computation

parent d11fb1ba
...@@ -6,5 +6,6 @@ ...@@ -6,5 +6,6 @@
<file>subdivide.tes</file> <file>subdivide.tes</file>
<file>subdivide.vert</file> <file>subdivide.vert</file>
<file>subdivision-edge.compute</file> <file>subdivision-edge.compute</file>
<file>subdivision-vertex.compute</file>
</qresource> </qresource>
</RCC> </RCC>
#version 430 core
layout (local_size_x = 1) in;
struct Vertex {
vec3 pos;
vec3 norm;
vec2 uv;
};
layout(std430, binding=0) readonly buffer Vertices {
Vertex vertices[];
};
layout(std430, binding=1) readonly buffer VertexIndices {
unsigned int indices[];
};
layout(std430, binding=2) readonly buffer VertexOffsets {
unsigned int offsets[];
};
layout(std430, binding=3) writeonly buffer Output {
Vertex new_vertices[];
};
void main(){
}
Markdown is supported
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