Improve Windows vulkan draw performance by reducing the size of a struct.

This commit is contained in:
Sasha Szpakowski
2024-03-10 14:33:29 -03:00
parent b12ecf49d8
commit ec9fb6eb28
5 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -948,7 +948,7 @@ id<MTLRenderPipelineState> Shader::getCachedRenderPipeline(const RenderPipelineK
const auto &attrib = attributes.attribs[i];
int metalBufferIndex = firstVertexBufferBinding + attrib.bufferIndex;
vertdesc.attributes[i].format = getMTLVertexFormat(attrib.format);
vertdesc.attributes[i].format = getMTLVertexFormat(attrib.getFormat());
vertdesc.attributes[i].offset = attrib.offsetFromVertex;
vertdesc.attributes[i].bufferIndex = metalBufferIndex;