renderer_vulkan: proper min uniform alignment
This commit is contained in:
parent
6814d5f108
commit
729d02d699
|
@ -83,7 +83,7 @@ ComputePipeline::~ComputePipeline() = default;
|
||||||
|
|
||||||
void ComputePipeline::BindResources(Core::MemoryManager* memory, StreamBuffer& staging,
|
void ComputePipeline::BindResources(Core::MemoryManager* memory, StreamBuffer& staging,
|
||||||
VideoCore::TextureCache& texture_cache) const {
|
VideoCore::TextureCache& texture_cache) const {
|
||||||
static constexpr u64 MinUniformAlignment = 64;
|
static const u64 MinUniformAlignment = instance.UniformMinAlignment();
|
||||||
|
|
||||||
const auto map_staging = [&](auto src, size_t size) {
|
const auto map_staging = [&](auto src, size_t size) {
|
||||||
const auto [data, offset, _] = staging.Map(size, MinUniformAlignment);
|
const auto [data, offset, _] = staging.Map(size, MinUniformAlignment);
|
||||||
|
|
|
@ -278,7 +278,7 @@ void GraphicsPipeline::BuildDescSetLayout() {
|
||||||
|
|
||||||
void GraphicsPipeline::BindResources(Core::MemoryManager* memory, StreamBuffer& staging,
|
void GraphicsPipeline::BindResources(Core::MemoryManager* memory, StreamBuffer& staging,
|
||||||
VideoCore::TextureCache& texture_cache) const {
|
VideoCore::TextureCache& texture_cache) const {
|
||||||
static constexpr u64 MinUniformAlignment = 64;
|
static const u64 MinUniformAlignment = instance.UniformMinAlignment();
|
||||||
|
|
||||||
const auto map_staging = [&](auto src, size_t size) {
|
const auto map_staging = [&](auto src, size_t size) {
|
||||||
const auto [data, offset, _] = staging.Map(size, MinUniformAlignment);
|
const auto [data, offset, _] = staging.Map(size, MinUniformAlignment);
|
||||||
|
|
Loading…
Reference in New Issue