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

#include <CeresEngine/RenderAPI/OpenGL/GLGraphicsPipeline.hpp>

Inheritance diagram for CeresEngine::GLGraphicsPipeline:
CeresEngine::GPUGraphicsPipeline CeresEngine::GLDeviceObject< GLGraphicsPipeline, GPUGraphicsPipeline > CeresEngine::TDeviceObject< GPUGraphicsPipelineDescriptor > CeresEngine::GLObject< ChildTypeName, ParentType > CeresEngine::GPUDeviceObject CeresEngine::GPUObject

Public Member Functions

 GLGraphicsPipeline (GLDevicePtr device, const GPUGraphicsPipelineDescriptor &descriptor)
 
 ~GLGraphicsPipeline () final
 
GPUResourceSetPtr createResourceSet (const GPUResourceSetDescriptor &descriptor, UInt32 set=0) final
 
void begin (GPUCommandBuffer &commandBuffer) final
 
void end (GPUCommandBuffer &commandBuffer) final
 
size_t vboStride () const
 
- Public Member Functions inherited from CeresEngine::GPUGraphicsPipeline
 GPUGraphicsPipeline (const GPUGraphicsPipeline &)=delete
 Deleted copy constructor.
 
GPUGraphicsPipelineoperator= (const GPUGraphicsPipeline &)=delete
 
 GPUGraphicsPipeline (GPUGraphicsPipeline &&)=delete
 Deleted move constructor.
 
GPUGraphicsPipelineoperator= (GPUGraphicsPipeline &&)=delete
 
template<typename Func , typename... Args>
decltype(autowith (GPUCommandBuffer &commandBuffer, Func &&func)
 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< GPUGraphicsPipelineDescriptor >
 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.
 

Private Attributes

const GPUGraphicsPipelineDescriptor descriptorGL
 A object that describes the graphics pipeline object.
 
GLRenderPassPtr mRenderPass
 The OpenGL render pass.
 
GLPipelineLayoutPtr mPipelineLayout
 The OpenGL pipeline layout.
 
GLShaderProgramPtr mShaderProgram
 A vector of all pipelines stages in the pipeline.
 
GLuint mVAO = 0
 
size_t mVBOStride
 

Additional Inherited Members

- Public Types inherited from CeresEngine::TDeviceObject< GPUGraphicsPipelineDescriptor >
using Descriptor = GPUGraphicsPipelineDescriptor
 An type-alias to the descriptor struct type.
 
- Static Public Member Functions inherited from CeresEngine::GLObject< 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 RC< ChildTypeNamesafeCast (const RC< ParentType > &ptr)
 Safely 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 ChildTypeNamesafeCast (ParentType *object)
 Casts a object of type ParentType to a object of type ChildTypeName.
 
static const ChildTypeNamesafeCast (const ParentType *object)
 Casts a object of type ParentType to a object of type ChildTypeName.
 
- Public Attributes inherited from CeresEngine::TDeviceObject< GPUGraphicsPipelineDescriptor >
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.
 
- Protected Member Functions inherited from CeresEngine::GPUObject
virtual void destroy () noexcept
 A internal method called by the system when the object reference count reaches zero.
 
- Protected Member Functions inherited from CeresEngine::GLDeviceObject< GLGraphicsPipeline, GPUGraphicsPipeline >
 GLDeviceObject (GLDevicePtr device)
 Creates a new GLDeviceObject from the given device.
 
- Protected Attributes inherited from CeresEngine::GLDeviceObject< GLGraphicsPipeline, GPUGraphicsPipeline >
GLDevicedeviceGL
 The owning GLDevice instance.
 

Constructor & Destructor Documentation

◆ GLGraphicsPipeline()

CeresEngine::GLGraphicsPipeline::GLGraphicsPipeline ( GLDevicePtr  device,
const GPUGraphicsPipelineDescriptor descriptor 
)

◆ ~GLGraphicsPipeline()

CeresEngine::GLGraphicsPipeline::~GLGraphicsPipeline ( )
final

Member Function Documentation

◆ begin()

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

◆ createResourceSet()

GPUResourceSetPtr CeresEngine::GLGraphicsPipeline::createResourceSet ( const GPUResourceSetDescriptor descriptor,
UInt32  set = 0 
)
finalvirtual

◆ end()

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

◆ vboStride()

size_t CeresEngine::GLGraphicsPipeline::vboStride ( ) const

Member Data Documentation

◆ descriptorGL

const GPUGraphicsPipelineDescriptor CeresEngine::GLGraphicsPipeline::descriptorGL
private

A object that describes the graphics pipeline object.

◆ mPipelineLayout

GLPipelineLayoutPtr CeresEngine::GLGraphicsPipeline::mPipelineLayout
private

The OpenGL pipeline layout.

◆ mRenderPass

GLRenderPassPtr CeresEngine::GLGraphicsPipeline::mRenderPass
private

The OpenGL render pass.

◆ mShaderProgram

GLShaderProgramPtr CeresEngine::GLGraphicsPipeline::mShaderProgram
private

A vector of all pipelines stages in the pipeline.

◆ mVAO

GLuint CeresEngine::GLGraphicsPipeline::mVAO = 0
private

◆ mVBOStride

size_t CeresEngine::GLGraphicsPipeline::mVBOStride
private

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