Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor3d::ShaderAppendBuffer Class Reference

#include <ShaderAppendBuffer.hpp>

Public Member Functions

C3D_API ShaderAppendBuffer (RenderDevice const &device, VkDeviceSize size, castor::String const &name)
 Constructor.
 
C3D_API VkDescriptorSetLayoutBinding createLayoutBinding (uint32_t index=0u, VkShaderStageFlags stages=(VK_SHADER_STAGE_FRAGMENT_BIT|VK_SHADER_STAGE_GEOMETRY_BIT|VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT|VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT|VK_SHADER_STAGE_VERTEX_BIT)) const
 Creates the descriptor set layout binding at given point.
 
C3D_API void createPassBinding (crg::FramePass &pass, uint32_t binding) const
 Creates a frame pass binding.
 
C3D_API ashes::WriteDescriptorSet getBinding (uint32_t binding) const
 Creates the descriptor write for this buffer.
 
C3D_API void createBinding (ashes::DescriptorSet &descriptorSet, VkDescriptorSetLayoutBinding const &binding) const
 Creates the descriptor set binding at given point.
 
VkDeviceSize getSize () const noexcept
 
RenderDevice const & getDevice () const noexcept
 
ashes::BufferBase const & getBuffer () const noexcept
 

Constructor & Destructor Documentation

◆ ShaderAppendBuffer()

C3D_API castor3d::ShaderAppendBuffer::ShaderAppendBuffer ( RenderDevice const & device,
VkDeviceSize size,
castor::String const & name )

Constructor.

Parameters
[in]deviceThe GPU device.
[in]sizeThe buffer size.
[in]nameThe shader buffer name.

Member Function Documentation

◆ createBinding()

C3D_API void castor3d::ShaderAppendBuffer::createBinding ( ashes::DescriptorSet & descriptorSet,
VkDescriptorSetLayoutBinding const & binding ) const

Creates the descriptor set binding at given point.

Parameters
[in,out]descriptorSetReceives the created binding.
[in]bindingThe descriptor set layout binding.

◆ createLayoutBinding()

C3D_API VkDescriptorSetLayoutBinding castor3d::ShaderAppendBuffer::createLayoutBinding ( uint32_t index = 0u,
VkShaderStageFlags stages = (VK_SHADER_STAGE_FRAGMENT_BIT|VK_SHADER_STAGE_GEOMETRY_BIT|VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT|VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT|VK_SHADER_STAGE_VERTEX_BIT) ) const

Creates the descriptor set layout binding at given point.

Parameters
[in]indexThe binding point index.
[in]stagesThe shader stages.

◆ createPassBinding()

C3D_API void castor3d::ShaderAppendBuffer::createPassBinding ( crg::FramePass & pass,
uint32_t binding ) const

Creates a frame pass binding.

◆ getBinding()

C3D_API ashes::WriteDescriptorSet castor3d::ShaderAppendBuffer::getBinding ( uint32_t binding) const

Creates the descriptor write for this buffer.

Parameters
[in]bindingThe descriptor set layout binding.

◆ getBuffer()

ashes::BufferBase const & castor3d::ShaderAppendBuffer::getBuffer ( ) const
inlinenoexcept

◆ getDevice()

RenderDevice const & castor3d::ShaderAppendBuffer::getDevice ( ) const
inlinenoexcept

◆ getSize()

VkDeviceSize castor3d::ShaderAppendBuffer::getSize ( ) const
inlinenoexcept

name Getters.


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