Graphics/Material: Fix uniform buffer size
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user