WispRenderer icon indicating copy to clipboard operation
WispRenderer copied to clipboard

`CreateMaterialPool` doesn't use the size_in_bytes variable. Always allocates 1_mb

Open VZout opened this issue 5 years ago • 1 comments

d3d12_material_pool.hpp:

m_constant_buffer_pool = m_render_system.CreateConstantBufferPool(1_mb);		

d3d12_renderer.hpp

std::shared_ptr<MaterialPool> D3D12RenderSystem::CreateMaterialPool(std::size_t size_in_bytes)
{
	return std::make_shared<D3D12MaterialPool>(*this);
}

VZout avatar May 08 '19 17:05 VZout

Created a pull request with the fix (https://github.com/TeamWisp/WispRenderer/pull/394)

161563 avatar Jun 21 '19 13:06 161563