Graphics/Material: Fix uniform buffer size
This commit is contained in:
parent
b79718404c
commit
be9fba3190
|
|
@ -68,7 +68,7 @@ namespace Nz
|
||||||
const ShaderReflection::StructData* structData = m_reflection.GetStructByIndex(shaderBlock.structIndex);
|
const ShaderReflection::StructData* structData = m_reflection.GetStructByIndex(shaderBlock.structIndex);
|
||||||
assert(structData);
|
assert(structData);
|
||||||
|
|
||||||
std::size_t size = structData->fieldOffsets.GetSize();
|
std::size_t size = structData->fieldOffsets.GetAlignedSize();
|
||||||
|
|
||||||
auto& uniformBlock = m_uniformBlocks.emplace_back();
|
auto& uniformBlock = m_uniformBlocks.emplace_back();
|
||||||
uniformBlock.bindingIndex = shaderBlock.bindingIndex;
|
uniformBlock.bindingIndex = shaderBlock.bindingIndex;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue