summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-06-24 01:43:19 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-06-27 01:57:22 +0200
commit9d55e5586f5dde8f92ba67375739410d306c480e (patch)
treee33293215ac07a2e15278779346bd40904ddfd26 /src
parentvk_pipeline_cache: Avoid hashing and comparing dynamic state when possible (diff)
downloadyuzu-9d55e5586f5dde8f92ba67375739410d306c480e.tar
yuzu-9d55e5586f5dde8f92ba67375739410d306c480e.tar.gz
yuzu-9d55e5586f5dde8f92ba67375739410d306c480e.tar.bz2
yuzu-9d55e5586f5dde8f92ba67375739410d306c480e.tar.lz
yuzu-9d55e5586f5dde8f92ba67375739410d306c480e.tar.xz
yuzu-9d55e5586f5dde8f92ba67375739410d306c480e.tar.zst
yuzu-9d55e5586f5dde8f92ba67375739410d306c480e.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
index 7625871c2..380ed532b 100644
--- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp
+++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
@@ -332,23 +332,23 @@ private:
if constexpr (has_extended_dynamic_state) {
// With extended dynamic states we can specify the length and stride of a vertex buffer
- std::array<VkDeviceSize, N> sizes;
+ // std::array<VkDeviceSize, N> sizes;
std::array<u16, N> strides;
- std::copy(vertex.sizes.begin(), vertex.sizes.begin() + N, sizes.begin());
+ // std::copy(vertex.sizes.begin(), vertex.sizes.begin() + N, sizes.begin());
std::copy(vertex.strides.begin(), vertex.strides.begin() + N, strides.begin());
if constexpr (is_indexed) {
scheduler.Record(
- [buffers, offsets, sizes, strides, index = index](vk::CommandBuffer cmdbuf) {
+ [buffers, offsets, strides, index = index](vk::CommandBuffer cmdbuf) {
cmdbuf.BindIndexBuffer(index.buffer, index.offset, index.type);
cmdbuf.BindVertexBuffers2EXT(0, static_cast<u32>(N), buffers.data(),
- offsets.data(), sizes.data(),
+ offsets.data(), nullptr,
ExpandStrides(strides).data());
});
} else {
- scheduler.Record([buffers, offsets, sizes, strides](vk::CommandBuffer cmdbuf) {
+ scheduler.Record([buffers, offsets, strides](vk::CommandBuffer cmdbuf) {
cmdbuf.BindVertexBuffers2EXT(0, static_cast<u32>(N), buffers.data(),
- offsets.data(), sizes.data(),
+ offsets.data(), nullptr,
ExpandStrides(strides).data());
});
}