diff options
author | bunnei <bunneidev@gmail.com> | 2020-06-01 00:40:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 00:40:17 +0200 |
commit | e68ee43a1a99dd62d8f6a6a469764a6737b4e0e8 (patch) | |
tree | f9714b1ff0f6dbfeb1255d7b6ec16d22327a8d0f /src/video_core/renderer_vulkan/vk_rasterizer.cpp | |
parent | Update CMakeLists.txt (diff) | |
parent | vk_rasterizer: Implement constant attributes (diff) | |
download | yuzu-e68ee43a1a99dd62d8f6a6a469764a6737b4e0e8.tar yuzu-e68ee43a1a99dd62d8f6a6a469764a6737b4e0e8.tar.gz yuzu-e68ee43a1a99dd62d8f6a6a469764a6737b4e0e8.tar.bz2 yuzu-e68ee43a1a99dd62d8f6a6a469764a6737b4e0e8.tar.lz yuzu-e68ee43a1a99dd62d8f6a6a469764a6737b4e0e8.tar.xz yuzu-e68ee43a1a99dd62d8f6a6a469764a6737b4e0e8.tar.zst yuzu-e68ee43a1a99dd62d8f6a6a469764a6737b4e0e8.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index be5b77fae..a3d992ed3 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -877,14 +877,10 @@ void RasterizerVulkan::SetupVertexArrays(FixedPipelineState::VertexInput& vertex for (std::size_t index = 0; index < Maxwell::NumVertexAttributes; ++index) { const auto& attrib = regs.vertex_attrib_format[index]; - if (!attrib.IsValid()) { + if (attrib.IsConstant()) { vertex_input.SetAttribute(index, false, 0, 0, {}, {}); continue; } - - [[maybe_unused]] const auto& buffer = regs.vertex_array[attrib.buffer]; - ASSERT(buffer.IsEnabled()); - vertex_input.SetAttribute(index, true, attrib.buffer, attrib.offset, attrib.type.Value(), attrib.size.Value()); } |