|
|
@ -516,15 +516,15 @@ void BufferCacheRuntime::BindVertexBuffers(VideoCommon::HostBindings<Buffer>& bi
|
|
|
|
buffer_handles.push_back(handle);
|
|
|
|
buffer_handles.push_back(handle);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (device.IsExtExtendedDynamicStateSupported()) {
|
|
|
|
if (device.IsExtExtendedDynamicStateSupported()) {
|
|
|
|
scheduler.Record([bindings = bindings,
|
|
|
|
scheduler.Record([bindings = std::move(bindings),
|
|
|
|
buffer_handles = buffer_handles](vk::CommandBuffer cmdbuf) {
|
|
|
|
buffer_handles = std::move(buffer_handles)](vk::CommandBuffer cmdbuf) {
|
|
|
|
cmdbuf.BindVertexBuffers2EXT(
|
|
|
|
cmdbuf.BindVertexBuffers2EXT(
|
|
|
|
bindings.min_index, bindings.max_index - bindings.min_index, buffer_handles.data(),
|
|
|
|
bindings.min_index, bindings.max_index - bindings.min_index, buffer_handles.data(),
|
|
|
|
bindings.offsets.data(), bindings.sizes.data(), bindings.strides.data());
|
|
|
|
bindings.offsets.data(), bindings.sizes.data(), bindings.strides.data());
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
scheduler.Record([bindings = bindings,
|
|
|
|
scheduler.Record([bindings = std::move(bindings),
|
|
|
|
buffer_handles = buffer_handles](vk::CommandBuffer cmdbuf) {
|
|
|
|
buffer_handles = std::move(buffer_handles)](vk::CommandBuffer cmdbuf) {
|
|
|
|
cmdbuf.BindVertexBuffers(bindings.min_index, bindings.max_index - bindings.min_index,
|
|
|
|
cmdbuf.BindVertexBuffers(bindings.min_index, bindings.max_index - bindings.min_index,
|
|
|
|
buffer_handles.data(), bindings.offsets.data());
|
|
|
|
buffer_handles.data(), bindings.offsets.data());
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -561,12 +561,12 @@ void BufferCacheRuntime::BindTransformFeedbackBuffers(VideoCommon::HostBindings<
|
|
|
|
for (u32 index = 0; index < bindings.buffers.size(); ++index) {
|
|
|
|
for (u32 index = 0; index < bindings.buffers.size(); ++index) {
|
|
|
|
buffer_handles.push_back(bindings.buffers[index]->Handle());
|
|
|
|
buffer_handles.push_back(bindings.buffers[index]->Handle());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scheduler.Record(
|
|
|
|
scheduler.Record([bindings = std::move(bindings),
|
|
|
|
[bindings = bindings, buffer_handles = buffer_handles](vk::CommandBuffer cmdbuf) {
|
|
|
|
buffer_handles = std::move(buffer_handles)](vk::CommandBuffer cmdbuf) {
|
|
|
|
cmdbuf.BindTransformFeedbackBuffersEXT(0, static_cast<u32>(buffer_handles.size()),
|
|
|
|
cmdbuf.BindTransformFeedbackBuffersEXT(0, static_cast<u32>(buffer_handles.size()),
|
|
|
|
buffer_handles.data(), bindings.offsets.data(),
|
|
|
|
buffer_handles.data(), bindings.offsets.data(),
|
|
|
|
bindings.sizes.data());
|
|
|
|
bindings.sizes.data());
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void BufferCacheRuntime::ReserveNullBuffer() {
|
|
|
|
void BufferCacheRuntime::ReserveNullBuffer() {
|
|
|
|