mirror of
https://github.com/Takiiiiiiii/strato.git
synced 2025-07-17 08:46:39 +00:00
Implement Maxwell3D Vertex Buffer Instance Rate
Implements the `isVertexInputRatePerInstance` register array which controls if the vertex input rate is either per-vertex or per-instance. This works in conjunction with the vertex attribute divisor for per-instance attribute repetition of attributes.
This commit is contained in:
@ -784,6 +784,10 @@ namespace skyline::gpu::interconnect {
|
||||
vertexBindings[index].stride = stride;
|
||||
}
|
||||
|
||||
void SetVertexBufferInputRate(u32 index, bool isPerInstance) {
|
||||
vertexBindings[index].inputRate = isPerInstance ? vk::VertexInputRate::eInstance : vk::VertexInputRate::eVertex;
|
||||
}
|
||||
|
||||
void SetVertexBufferIovaHigh(u32 index, u32 high) {
|
||||
vertexBindingIovas[index].high = high;
|
||||
}
|
||||
|
Reference in New Issue
Block a user