Starting to readd Debug renderpass

This commit is contained in:
Dynamitos
2024-01-11 21:40:46 +01:00
parent f17f05433f
commit c0da7d77a1
4 changed files with 133 additions and 127 deletions
+16
View File
@@ -0,0 +1,16 @@
import Common;
import VertexData;
import MaterialParameter;
struct StaticMeshVertexData : IVertexData
{
VertexAttributes getAttributes(uint index)
{
VertexAttributes attributes;
attributes.position_MS = float3(positions[3 * index + 0], positions[3 * index + 1], positions[3 * index + 2]);
attributes.vertexColor = float3(color[3 * index + 0], color[3 * index + 1], color[3 * index + 2]);
return attributes;
}
StructuredBuffer<float> positions;
StructuredBuffer<float> color;
};