CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::VKComputePipeline Class Referencefinal

#include <CeresEngine/RenderAPI/Vulkan/VKComputePipeline.hpp>

Inheritance diagram for CeresEngine::VKComputePipeline:
CeresEngine::GPUComputePipeline CeresEngine::VKDeviceObject< VKComputePipeline, GPUComputePipeline > CeresEngine::TDeviceObject< GPUComputePipelineDescriptor > CeresEngine::VKObject< ChildTypeName, ParentType > CeresEngine::VKDeviceObjectBase CeresEngine::GPUDeviceObject CeresEngine::VKObjectBase CeresEngine::GPUObject

Public Types

using Allocator = VKObjectAllocator
 An allocator type used to allocate new VKComputePipeline instances from a memory pool.
 
- Public Types inherited from CeresEngine::TDeviceObject< GPUComputePipelineDescriptor >
using Descriptor = GPUComputePipelineDescriptor
 An type-alias to the descriptor struct type.
 

Public Member Functions

 VKComputePipeline (VKDevice &device, const GPUComputePipelineDescriptor &descriptor)
 
 ~VKComputePipeline () final
 
void destroy () noexcept final
 
 operator VkPipeline () const noexcept
 The Vulkan pipeline object.
 
GPUResourceSetPtr createResourceSet (const GPUResourceSetDescriptor &descriptor) final
 
void begin (GPUCommandBuffer &commandBuffer) final
 
void end (GPUCommandBuffer &commandBuffer) final
 
- Public Member Functions inherited from CeresEngine::GPUComputePipeline
 GPUComputePipeline (const GPUComputePipeline &)=delete
 Deleted copy constructor.
 
GPUComputePipelineoperator= (const GPUComputePipeline &)=delete
 
 GPUComputePipeline (GPUComputePipeline &&)=delete
 Deleted move constructor.
 
GPUComputePipelineoperator= (GPUComputePipeline &&)=delete
 
template<typename Func , typename... Args>
decltype(autowith (GPUCommandBuffer &commandBuffer, Func &&func, Args &&... args)
 Prepares the pipeline for execution.
 
 TDeviceObject (GPUDevice &device, const Descriptor &descriptor)
 Inherited constructors.
 
 TDeviceObject (const TDeviceObject &)=delete
 Inherited constructors.
 
 TDeviceObject (TDeviceObject &&)=delete
 Inherited constructors.
 
- Public Member Functions inherited from CeresEngine::TDeviceObject< GPUComputePipelineDescriptor >
 TDeviceObject (GPUDevice &device, const Descriptor &descriptor)
 Initializes a new RenderAPI device object instance.
 
 TDeviceObject (const TDeviceObject &)=delete
 
 TDeviceObject (TDeviceObject &&)=delete
 
 ~TDeviceObject () override=default
 
TDeviceObjectoperator= (const TDeviceObject &)=delete
 
TDeviceObjectoperator= (TDeviceObject &&)=delete
 
- Public Member Functions inherited from CeresEngine::GPUDeviceObject
 GPUDeviceObject (GPUDevice &device)
 
 ~GPUDeviceObject () override
 
- Public Member Functions inherited from CeresEngine::GPUObject
 GPUObject ()=default
 
virtual ~GPUObject ()=default
 
 GPUObject (const GPUObject &)=delete
 
GPUObjectoperator= (const GPUObject &)=delete
 
 GPUObject (GPUObject &&)=delete
 
GPUObjectoperator= (GPUObject &&)=delete
 
void retain () noexcept
 Retains the object by increment it's reference count by one.
 
bool release () noexcept
 Releases the object by decrementing it's reference count by one.
 
- Public Member Functions inherited from CeresEngine::VKDeviceObjectBase
 VKDeviceObjectBase (VKDevice &device) noexcept
 Creates a new VKDeviceObjectBase from the given device.
 
 ~VKDeviceObjectBase () noexcept
 Destroys the VKDeviceObjectBase.
 

Static Public Member Functions

static AllocatorgetAllocator () noexcept
 Returns the allocator for VKComputePipeline.
 
static voidoperator new (size_t size) noexcept
 Allocates memory for a new instance of VKComputePipeline.
 
static void operator delete (void *p, std::size_t size) noexcept
 Deletes memory for an instance of VKComputePipeline.
 
- Static Public Member Functions inherited from CeresEngine::VKObject< ChildTypeName, ParentType >
static RC< ChildTypeNamecast (const RC< ParentType > &ptr)
 Casts a RC containing a ParentType pointer to a pointer to a pointer to a ChildTypeName.
 
static ChildTypeNamecast (ParentType &object)
 Casts a object of type ParentType to a object of type ChildTypeName.
 
static const ChildTypeNamecast (const ParentType &object)
 Casts a object of type ParentType to a object of type ChildTypeName.
 
static ChildTypeNamecast (ParentType *object)
 Casts a object of type ParentType to a object of type ChildTypeName.
 
static const ChildTypeNamecast (const ParentType *object)
 Casts a object of type ParentType to a object of type ChildTypeName.
 
- Static Public Member Functions inherited from CeresEngine::VKObjectBase
static voidoperator new (size_t size) noexcept
 
static void operator delete (void *p, std::size_t sz) noexcept
 

Private Attributes

const GPUComputePipelineDescriptor descriptorVK
 A structure that describes the compute pipeline and it's properties.
 
VkPipeline mPipeline = VK_NULL_HANDLE
 The Vulkan pipeline object.
 
VKPipelineLayoutPtr mPipelineLayout
 A reference to the pipeline layout object.
 
VKShaderProgramPtr mShaderProgram
 A reference to the shader program object.
 

Additional Inherited Members

- Public Attributes inherited from CeresEngine::TDeviceObject< GPUComputePipelineDescriptor >
const Descriptordescriptor
 A structure that describes the object and it's properties.
 
- Public Attributes inherited from CeresEngine::GPUDeviceObject
GPUDevicedevice
 The owning device this object was created from.
 
- Public Attributes inherited from CeresEngine::VKDeviceObjectBase
VKDevicedeviceVK
 The owning VKDevice instance.
 
- Protected Member Functions inherited from CeresEngine::VKDeviceObject< VKComputePipeline, GPUComputePipeline >
 VKDeviceObject (VKDevice &device) noexcept
 Creates a new VKDeviceObject from the given device.
 

Member Typedef Documentation

◆ Allocator

An allocator type used to allocate new VKComputePipeline instances from a memory pool.

Constructor & Destructor Documentation

◆ VKComputePipeline()

CeresEngine::VKComputePipeline::VKComputePipeline ( VKDevice device,
const GPUComputePipelineDescriptor descriptor 
)

◆ ~VKComputePipeline()

CeresEngine::VKComputePipeline::~VKComputePipeline ( )
final

Member Function Documentation

◆ begin()

void CeresEngine::VKComputePipeline::begin ( GPUCommandBuffer commandBuffer)
finalvirtual

◆ createResourceSet()

GPUResourceSetPtr CeresEngine::VKComputePipeline::createResourceSet ( const GPUResourceSetDescriptor descriptor)
finalvirtual

◆ destroy()

void CeresEngine::VKComputePipeline::destroy ( )
finalvirtualnoexcept

Reimplemented from CeresEngine::GPUObject.

◆ end()

void CeresEngine::VKComputePipeline::end ( GPUCommandBuffer commandBuffer)
finalvirtual

◆ getAllocator()

static Allocator & CeresEngine::VKComputePipeline::getAllocator ( )
staticnoexcept

Returns the allocator for VKComputePipeline.

◆ operator delete()

static void CeresEngine::VKComputePipeline::operator delete ( void p,
std::size_t  size 
)
staticnoexcept

Deletes memory for an instance of VKComputePipeline.

◆ operator new()

static void * CeresEngine::VKComputePipeline::operator new ( size_t  size)
staticnoexcept

Allocates memory for a new instance of VKComputePipeline.

◆ operator VkPipeline()

CeresEngine::VKComputePipeline::operator VkPipeline ( ) const
inlinenoexcept

The Vulkan pipeline object.

Member Data Documentation

◆ descriptorVK

const GPUComputePipelineDescriptor CeresEngine::VKComputePipeline::descriptorVK
private

A structure that describes the compute pipeline and it's properties.

◆ mPipeline

VkPipeline CeresEngine::VKComputePipeline::mPipeline = VK_NULL_HANDLE
private

The Vulkan pipeline object.

◆ mPipelineLayout

VKPipelineLayoutPtr CeresEngine::VKComputePipeline::mPipelineLayout
private

A reference to the pipeline layout object.

◆ mShaderProgram

VKShaderProgramPtr CeresEngine::VKComputePipeline::mShaderProgram
private

A reference to the shader program object.


The documentation for this class was generated from the following file: