SPARK  0.1.0
A general purpose game engine written in C++.
Loading...
Searching...
No Matches
spark::render::StateResource Class Reference

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

#include <StateResource.h>

Inheritance diagram for spark::render::StateResource:
spark::render::IStateResource spark::render::RenderPass< VulkanRenderPipeline, VulkanFrameBuffer, VulkanInputAttachmentMapping > spark::render::RenderPipeline< VulkanPipelineLayout, VulkanShaderProgram, VulkanInputAssembler, VulkanRasterizer > spark::render::RenderPass< RenderPipelineType, FrameBufferType, InputAttachmentMappingType > spark::render::RenderPipeline< PipelineLayoutType, ShaderProgramType, InputAssemblerType, RasterizerType > spark::render::vk::VulkanBuffer spark::render::vk::VulkanImage spark::render::vk::VulkanSampler spark::render::vk::VulkanRenderPass spark::render::vk::VulkanRenderPipeline spark::render::vk::VulkanIndexBuffer spark::render::vk::VulkanVertexBuffer

Classes

struct  Impl
 

Public Member Functions

 StateResource (std::string_view name) noexcept
 Initializes a new StateResource instance.
 
 StateResource (const StateResource &other)=delete
 
 StateResource (StateResource &&other) noexcept
 
StateResourceoperator= (const StateResource &other)=delete
 
StateResourceoperator= (StateResource &&other) noexcept
 
const std::string & name () const noexcept final
 Gets the name of the state resource.
 

Protected Member Functions

 StateResource () noexcept
 Initializes a new StateResource instance with an empty name.
 
std::string & name () noexcept
 Gets the name of the state resource.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ StateResource()

spark::render::StateResource::StateResource ( std::string_view name)
explicitnoexcept

Initializes a new StateResource instance.

Parameters
nameThe name of the resource.

Member Function Documentation

◆ name() [1/2]

const std::string & spark::render::StateResource::name ( ) const
nodiscardfinalvirtualnoexcept

Gets the name of the state resource.

Returns
A std::string& containing the name of the state resource.

Implements spark::render::IStateResource.

◆ name() [2/2]

std::string & spark::render::StateResource::name ( )
nodiscardprotectednoexcept

Gets the name of the state resource.

Returns
A std::string& containing the name of the state resource.