UBO consolidation (#3089)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -56,7 +56,7 @@ BufferResource::BufferResource(
|
||||
std::size_t totalSize = size;
|
||||
|
||||
// TODO -> check avg minUniformBufferOffsetAlignment vs individual buffers
|
||||
if (usage & VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT) {
|
||||
if (usage & VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT || usage & VK_BUFFER_USAGE_STORAGE_BUFFER_BIT) {
|
||||
const auto& backend = context.getBackend();
|
||||
const auto& deviceProps = backend.getDeviceProperties();
|
||||
const auto& align = deviceProps.limits.minUniformBufferOffsetAlignment;
|
||||
|
||||
Reference in New Issue
Block a user