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

Interface for a push constants range in a push constants layout . More...

#include <PushConstantsRange.h>

Inheritance diagram for spark::render::IPushConstantsRange:
spark::render::vk::VulkanPushConstantsRange

Public Member Functions

virtual unsigned int space () const noexcept=0
 Gets the shader space the push constants can be accessed from.
 
virtual unsigned int binding () const noexcept=0
 Gets the binding point or register, the push constants are made available at.
 
virtual unsigned int offset () const noexcept=0
 Gets the offset from the push constants backing memory block, the range starts at.
 
virtual unsigned int size () const noexcept=0
 Gets the size (in bytes) of the range.
 
virtual ShaderStage stage () const noexcept=0
 Gets the shader stage(s), the range is accessible from.
 

Detailed Description

Interface for a push constants range in a push constants layout .

Member Function Documentation

◆ binding()

virtual unsigned int spark::render::IPushConstantsRange::binding ( ) const
nodiscardpure virtualnoexcept

Gets the binding point or register, the push constants are made available at.

Returns
The binding point or register, the push constants are made available at.

Implemented in spark::render::vk::VulkanPushConstantsRange.

◆ offset()

virtual unsigned int spark::render::IPushConstantsRange::offset ( ) const
nodiscardpure virtualnoexcept

Gets the offset from the push constants backing memory block, the range starts at.

Returns
The offset from the push constants backing memory block, the range starts at.

Implemented in spark::render::vk::VulkanPushConstantsRange.

◆ size()

virtual unsigned int spark::render::IPushConstantsRange::size ( ) const
nodiscardpure virtualnoexcept

Gets the size (in bytes) of the range.

Returns
The size (in bytes) of the range.

Implemented in spark::render::vk::VulkanPushConstantsRange.

◆ space()

virtual unsigned int spark::render::IPushConstantsRange::space ( ) const
nodiscardpure virtualnoexcept

Gets the shader space the push constants can be accessed from.

Returns
The shader space the push constants can be accessed from.

Implemented in spark::render::vk::VulkanPushConstantsRange.

◆ stage()

virtual ShaderStage spark::render::IPushConstantsRange::stage ( ) const
nodiscardpure virtualnoexcept

Gets the shader stage(s), the range is accessible from.

Returns
The shader stage(s), the range is accessible from.

Implemented in spark::render::vk::VulkanPushConstantsRange.