mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
fix pipeline_common
This commit is contained in:
parent
57df6f189f
commit
2d54441ce4
@ -59,10 +59,9 @@ void Pipeline::BindBuffers(VideoCore::BufferCache& buffer_cache,
|
||||
|
||||
// Bind the flattened user data buffer as a UBO so it's accessible to the shader
|
||||
if (stage.has_readconst) {
|
||||
const auto [vk_buffer, offset] =
|
||||
buffer_cache.ObtainHostUBO(reinterpret_cast<VAddr>(stage.flattened_ud_buf.data()),
|
||||
stage.flattened_ud_buf.size_bytes());
|
||||
buffer_infos.emplace_back(vk_buffer->Handle(), offset, stage.flattened_ud_buf.size_bytes());
|
||||
const auto [vk_buffer, offset] = buffer_cache.ObtainHostUBO(stage.flattened_ud_buf);
|
||||
buffer_infos.emplace_back(vk_buffer->Handle(), offset,
|
||||
stage.flattened_ud_buf.size() * sizeof(u32));
|
||||
set_writes.push_back({
|
||||
.dstSet = VK_NULL_HANDLE,
|
||||
.dstBinding = binding.unified++,
|
||||
|
Loading…
Reference in New Issue
Block a user