vk_compute_pipeline: Fix index comparison oversight on compute texture buffers
This commit is contained in:
parent
50eb03382e
commit
8fda599a31
|
@ -136,7 +136,7 @@ void ComputePipeline::Configure(Tegra::Engines::KeplerCompute& kepler_compute,
|
||||||
ImageId* texture_buffer_ids{image_view_ids.data()};
|
ImageId* texture_buffer_ids{image_view_ids.data()};
|
||||||
size_t index{};
|
size_t index{};
|
||||||
const auto add_buffer{[&](const auto& desc) {
|
const auto add_buffer{[&](const auto& desc) {
|
||||||
for (u32 i = 0; index < desc.count; ++i) {
|
for (u32 i = 0; i < desc.count; ++i) {
|
||||||
bool is_written{false};
|
bool is_written{false};
|
||||||
if constexpr (std::is_same_v<decltype(desc), const Shader::ImageBufferDescriptor&>) {
|
if constexpr (std::is_same_v<decltype(desc), const Shader::ImageBufferDescriptor&>) {
|
||||||
is_written = desc.is_written;
|
is_written = desc.is_written;
|
||||||
|
|
Loading…
Reference in a new issue