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

WebGPU RenderAPI fence object. More...

#include <CeresEngine/RenderAPI/WebGPU/WGFence.hpp>

Inheritance diagram for CeresEngine::WGFence:
CeresEngine::GPUFence CeresEngine::WGDeviceObject< WGFence, GPUFence > CeresEngine::TDeviceObject< GPUFenceDescriptor > CeresEngine::WGObject< ChildTypeName, ParentType > CeresEngine::GPUDeviceObject CeresEngine::GPUObject

Public Types

using WGLFenceType = CE_WG_HANDLE(WGLFence)
 
- Public Types inherited from CeresEngine::TDeviceObject< GPUFenceDescriptor >
using Descriptor = GPUFenceDescriptor
 An type-alias to the descriptor struct type.
 

Public Member Functions

 WGFence (WGDevicePtr device, const GPUFenceDescriptor &descriptor)
 Creates a new WGFence object.
 
 ~WGFence () final
 Destroys the WGFence object.
 
 operator WGLFenceType () const noexcept
 The WebGPU API fence object.
 
void reset () final
 
bool wait (UInt64 timeout) final
 
- Public Member Functions inherited from CeresEngine::GPUFence
 GPUFence (const GPUFence &)=delete
 Deleted copy constructor.
 
GPUFenceoperator= (const GPUFence &)=delete
 
 GPUFence (GPUFence &&)=delete
 Deleted move constructor.
 
GPUFenceoperator= (GPUFence &&)=delete
 
 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< GPUFenceDescriptor >
 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 GPUFenceDescriptor mDescriptor
 A structure that describes the fence and it's properties.
 
WGLFenceType mFence
 The WebGPU API fence object.
 

Additional Inherited Members

- Static Public Member Functions inherited from CeresEngine::WGObject< 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< GPUFenceDescriptor >
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::WGDeviceObject< WGFence, GPUFence >
 WGDeviceObject (WGDevicePtr device)
 Creates a new WGDeviceObject from the given device.
 
- Protected Attributes inherited from CeresEngine::WGDeviceObject< WGFence, GPUFence >
WGDevicedeviceWG
 The owning WGDevice instance.
 

Detailed Description

WebGPU RenderAPI fence object.

Member Typedef Documentation

◆ WGLFenceType

Constructor & Destructor Documentation

◆ WGFence()

CeresEngine::WGFence::WGFence ( WGDevicePtr  device,
const GPUFenceDescriptor descriptor 
)

Creates a new WGFence object.

Parameters
deviceThe owning device
descriptorThe descriptor object that describes the object

◆ ~WGFence()

CeresEngine::WGFence::~WGFence ( )
final

Destroys the WGFence object.

Member Function Documentation

◆ operator WGLFenceType()

CeresEngine::WGFence::operator WGLFenceType ( ) const
inlinenoexcept

The WebGPU API fence object.

◆ reset()

void CeresEngine::WGFence::reset ( )
finalvirtual

Implements CeresEngine::GPUFence.

◆ wait()

bool CeresEngine::WGFence::wait ( UInt64  timeout)
finalvirtual

Implements CeresEngine::GPUFence.

Member Data Documentation

◆ mDescriptor

const GPUFenceDescriptor CeresEngine::WGFence::mDescriptor
private

A structure that describes the fence and it's properties.

◆ mFence

WGLFenceType CeresEngine::WGFence::mFence
private

The WebGPU API fence object.


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