BsVulkanRenderStateManager.cpp 772 B

1234567891011121314151617
  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. namespace BansheeEngine
  6. {
  7. SPtr<GpuPipelineStateCore> VulkanRenderStateCoreManager::_createPipelineState(const PIPELINE_STATE_CORE_DESC& desc,
  8. GpuDeviceFlags deviceMask) const
  9. {
  10. SPtr<VulkanGpuPipelineStateCore> pipelineState =
  11. bs_shared_ptr<VulkanGpuPipelineStateCore>(new (bs_alloc<VulkanGpuPipelineStateCore>()) VulkanGpuPipelineStateCore(desc, deviceMask));
  12. pipelineState->_setThisPtr(pipelineState);
  13. return pipelineState;
  14. }
  15. }