BsVulkanRenderStateManager.cpp 1.2 KB

12345678910111213141516171819202122232425262728
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #include "BsVulkanRenderStateManager.h"
  4. #include "BsVulkanGpuPipelineState.h"
  5. #include "BsVulkanSamplerState.h"
  6. namespace BansheeEngine
  7. {
  8. SPtr<SamplerStateCore> VulkanRenderStateCoreManager::createSamplerStateInternal(const SAMPLER_STATE_DESC& desc,
  9. GpuDeviceFlags deviceMask) const
  10. {
  11. SPtr<VulkanSamplerStateCore> samplerState =
  12. bs_shared_ptr<VulkanSamplerStateCore>(new (bs_alloc<VulkanSamplerStateCore>()) VulkanSamplerStateCore(desc, deviceMask));
  13. samplerState->_setThisPtr(samplerState);
  14. return samplerState;
  15. }
  16. SPtr<GpuPipelineStateCore> VulkanRenderStateCoreManager::_createPipelineState(const PIPELINE_STATE_CORE_DESC& desc,
  17. GpuDeviceFlags deviceMask) const
  18. {
  19. SPtr<VulkanGpuPipelineStateCore> pipelineState =
  20. bs_shared_ptr<VulkanGpuPipelineStateCore>(new (bs_alloc<VulkanGpuPipelineStateCore>()) VulkanGpuPipelineStateCore(desc, deviceMask));
  21. pipelineState->_setThisPtr(pipelineState);
  22. return pipelineState;
  23. }
  24. }