2024-01-11 21:40:46 +01:00
|
|
|
import Common;
|
|
|
|
|
import VertexData;
|
|
|
|
|
import MaterialParameter;
|
|
|
|
|
|
2024-03-31 10:21:09 +02:00
|
|
|
struct DebugVertexData : IVertexData
|
2024-01-11 21:40:46 +01:00
|
|
|
{
|
|
|
|
|
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;
|
|
|
|
|
};
|