Vulkan implementation of IPushConstantsRange.
More...
#include <VulkanPushConstantsRange.h>
Vulkan implementation of IPushConstantsRange.
◆ VulkanPushConstantsRange()
spark::render::vk::VulkanPushConstantsRange::VulkanPushConstantsRange |
( |
ShaderStage | shader_stage, |
|
|
unsigned int | offset, |
|
|
unsigned int | size, |
|
|
unsigned int | space, |
|
|
unsigned int | binding ) |
|
explicit |
Initializes a new VulkanPushConstantsRange.
- Parameters
-
shader_stage | The ShaderStage that accesses the push constants from the range. |
offset | The offset relative to the parent push constants backing memory that marks the beginning of the range. |
size | The size of the push constants range. |
space | The space from which the push constants of the range will be accessible in the shader. |
binding | The register from which the push constants of the range will be accessible in the shader. |
- Exceptions
-
base::BadArgumentException | if one of the following conditions is met:
offset is not a multiple of 4.
size is not a multiple of 4.
shader_stage is more than one bit set.
|
◆ binding()
unsigned spark::render::vk::VulkanPushConstantsRange::binding |
( |
| ) |
const |
|
nodiscardoverridevirtualnoexcept |
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.
Implements spark::render::IPushConstantsRange.
◆ offset()
unsigned spark::render::vk::VulkanPushConstantsRange::offset |
( |
| ) |
const |
|
nodiscardoverridevirtualnoexcept |
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.
Implements spark::render::IPushConstantsRange.
◆ size()
unsigned spark::render::vk::VulkanPushConstantsRange::size |
( |
| ) |
const |
|
nodiscardoverridevirtualnoexcept |
◆ space()
unsigned spark::render::vk::VulkanPushConstantsRange::space |
( |
| ) |
const |
|
nodiscardoverridevirtualnoexcept |
Gets the shader space the push constants can be accessed from.
- Returns
- The shader space the push constants can be accessed from.
Implements spark::render::IPushConstantsRange.
◆ stage()
ShaderStage spark::render::vk::VulkanPushConstantsRange::stage |
( |
| ) |
const |
|
nodiscardoverridevirtualnoexcept |