Fixed Kai Wei's issues (sampler move ctor never move device :D)
This commit is contained in:
parent
808274fce0
commit
2830dad8e3
|
@ -40,6 +40,7 @@ namespace SHADE
|
|||
|
||||
SHVkSampler::SHVkSampler(SHVkSampler&& rhs) noexcept
|
||||
: vkSampler{ rhs.vkSampler }
|
||||
, device{ rhs.device }
|
||||
{
|
||||
rhs.vkSampler = nullptr;
|
||||
}
|
||||
|
@ -56,6 +57,7 @@ namespace SHADE
|
|||
SHADE::SHVkSampler& SHVkSampler::operator=(SHVkSampler&& rhs) noexcept
|
||||
{
|
||||
vkSampler = rhs.vkSampler;
|
||||
device = rhs.device;
|
||||
rhs.vkSampler = nullptr;
|
||||
return *this;
|
||||
}
|
||||
|
|
|
@ -189,7 +189,6 @@ namespace SHADE
|
|||
worldRenderer = defaultViewport->AddRenderer(resourceManager, swapchain->GetNumImages(), renderContextCmdPools, descPool, SHGraphicsGlobalData::GetDescSetLayouts()[SHGraphicsConstants::DescriptorSetIndex::HIGH_FREQUENCY_GLOBALS], worldRenderGraph);
|
||||
worldRenderer->SetCamera(worldCamera);
|
||||
|
||||
|
||||
// TODO: This is VERY temporarily here until a more solid resource management system is implemented
|
||||
shaderSourceLibrary.Init("../../TempShaderFolder/");
|
||||
|
||||
|
|
Loading…
Reference in New Issue