This commit is contained in:
antopilo
2024-12-22 11:59:40 -05:00
parent 4897c8fb2c
commit 519d54df9b
3 changed files with 2 additions and 2 deletions

View File

@@ -98,6 +98,7 @@ namespace Nuake {
sRendererAPI->DrawElements(mode, count, type, indices);
}
void RenderCommand::DrawArrays(int first, int count)
{
sRendererAPI->DrawArrays(first, count);

View File

@@ -129,7 +129,6 @@ namespace Nuake
Matrix4 Projection;
};
class VkRenderer
{
private:
@@ -170,7 +169,6 @@ namespace Nuake
VkDescriptorSet DrawImageDescriptors;
VkDescriptorSetLayout DrawImageDescriptorLayout;
// Triangle descriptor set layout
VkDescriptorSet TriangleBufferDescriptors;
VkDescriptorSetLayout TriangleBufferDescriptorLayout;

View File

@@ -38,6 +38,7 @@ VSOutput main(uint vertexIndex : SV_VertexID)
VSOutput output;
World worldData = world[0];
// Load vertex data from the buffer
Vertex v = vertexBuffer[vertexIndex];