LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::Rendering::StateResource Class Reference

Base class for a resource that can be identified by a name string within a DeviceState. More...

#include <rendering_api.hpp>

Inherits LiteFX::Rendering::IStateResource.

Inherited by LiteFX::Rendering::Pipeline< DirectX12PipelineLayout, DirectX12ShaderProgram > [virtual], LiteFX::Rendering::Pipeline< VulkanPipelineLayout, VulkanShaderProgram > [virtual], LiteFX::Rendering::RenderPass< DirectX12RenderPipeline, DirectX12FrameBuffer, DirectX12InputAttachmentMapping > [virtual], LiteFX::Rendering::RenderPass< VulkanRenderPipeline, VulkanFrameBuffer, VulkanInputAttachmentMapping > [virtual], LiteFX::Rendering::Backends::DirectX12Buffer [virtual], LiteFX::Rendering::Backends::DirectX12Image [virtual], LiteFX::Rendering::Backends::DirectX12Sampler [virtual], LiteFX::Rendering::Backends::VulkanBuffer [virtual], LiteFX::Rendering::Backends::VulkanImage [virtual], LiteFX::Rendering::Backends::VulkanSampler [virtual], LiteFX::Rendering::Pipeline< TPipelineLayout, TShaderProgram > [virtual], and LiteFX::Rendering::RenderPass< TRenderPipeline, TFrameBuffer, TInputAttachmentMapping > [virtual].

Classes

class  StateResourceImpl
 

Public Member Functions

 StateResource (StringView name)
 Initializes a new state resource instance. More...
 
 StateResource (StateResource &&)=delete
 
 StateResource (const StateResource &)=delete
 
virtual ~StateResource () noexcept
 
virtual const Stringname () const noexcept override
 Returns the name of the resource. More...
 
- Public Member Functions inherited from LiteFX::Rendering::IStateResource
virtual ~IStateResource () noexcept=default
 
virtual const Stringname () const noexcept=0
 Returns the name of the resource. More...
 

Protected Member Functions

 StateResource () noexcept
 
Stringname () noexcept
 

Detailed Description

Base class for a resource that can be identified by a name string within a DeviceState.

Constructor & Destructor Documentation

◆ StateResource() [1/4]

StateResource::StateResource ( )
protectednoexcept

◆ StateResource() [2/4]

StateResource::StateResource ( StringView  name)
explicit

Initializes a new state resource instance.

Parameters
nameThe name of the resource.

◆ StateResource() [3/4]

LiteFX::Rendering::StateResource::StateResource ( StateResource &&  )
delete

◆ StateResource() [4/4]

LiteFX::Rendering::StateResource::StateResource ( const StateResource )
delete

◆ ~StateResource()

StateResource::~StateResource ( )
virtualdefaultnoexcept

Member Function Documentation

◆ name() [1/2]

const String & StateResource::name ( ) const
overridevirtualnoexcept

Returns the name of the resource.

Implements LiteFX::Rendering::IStateResource.

◆ name() [2/2]

String & StateResource::name ( )
protectednoexcept