Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | Protected Attributes | List of all members
castor3d::RenderQuadBuilderT< ConfigT, BuilderT > Class Template Reference

Used to create a RenderQuad variable. More...

#include <RenderQuad.hpp>

Inheritance diagram for castor3d::RenderQuadBuilderT< ConfigT, BuilderT >:
Inheritance graph
[legend]

Public Member Functions

 RenderQuadBuilderT ()
 
BuilderT & texcoordConfig (rq::Texcoord const &config)
 
BuilderT & range (VkImageSubresourceRange const &range)
 
BuilderT & blendMode (BlendMode blendMode)
 
BuilderT & bindings (rq::BindingDescriptionArray const &bindings)
 
BuilderT & binding (rq::BindingDescription const &binding)
 
BuilderT & binding (VkDescriptorType descriptor, VkShaderStageFlags stageFlags=VK_SHADER_STAGE_FRAGMENT_BIT)
 
BuilderT & binding (VkDescriptorType descriptor, VkImageViewType view, VkShaderStageFlags stageFlags=VK_SHADER_STAGE_FRAGMENT_BIT)
 
BuilderT & tex3DResult (IntermediateView result)
 
RenderQuadUPtr build (RenderDevice const &device, castor::String const &name, VkFilter samplerFilter)
 

Protected Attributes

ConfigT m_config
 

Detailed Description

template<typename ConfigT, typename BuilderT>
class castor3d::RenderQuadBuilderT< ConfigT, BuilderT >

Used to create a RenderQuad variable.

Constructor & Destructor Documentation

◆ RenderQuadBuilderT()

template<typename ConfigT , typename BuilderT >
castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::RenderQuadBuilderT ( )
inline

Member Function Documentation

◆ binding() [1/3]

template<typename ConfigT , typename BuilderT >
BuilderT & castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::binding ( rq::BindingDescription const & binding)
inline

◆ binding() [2/3]

template<typename ConfigT , typename BuilderT >
BuilderT & castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::binding ( VkDescriptorType descriptor,
VkImageViewType view,
VkShaderStageFlags stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT )
inline

Adds an image binding.

Parameters
[in]descriptorThe descriptor type.
[in]viewThe image view.
[in]stageFlagsThe descriptor stage flags.

References castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::binding().

Here is the call graph for this function:

◆ binding() [3/3]

template<typename ConfigT , typename BuilderT >
BuilderT & castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::binding ( VkDescriptorType descriptor,
VkShaderStageFlags stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT )
inline

Adds an image.

Parameters
[in]descriptorThe descriptor type.
[in]stageFlagsThe descriptor stage flags.

References castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::binding().

Here is the call graph for this function:

◆ bindings()

template<typename ConfigT , typename BuilderT >
BuilderT & castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::bindings ( rq::BindingDescriptionArray const & bindings)
inline
Parameters
[in]bindingsContains the inputs bindings.

References castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::bindings(), and castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::m_config.

Referenced by castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::bindings().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ blendMode()

template<typename ConfigT , typename BuilderT >
BuilderT & castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::blendMode ( BlendMode blendMode)
inline
Parameters
[in]blendModeContains blendMode to destination status.

References castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::blendMode(), and castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::m_config.

Referenced by castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::blendMode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ build()

template<typename ConfigT , typename BuilderT >
RenderQuadUPtr castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::build ( RenderDevice const & device,
castor::String const & name,
VkFilter samplerFilter )
inline

Creates the RenderQuad.

Parameters
[in]deviceThe RenderDevice.
[in]nameThe pass name.
[in]samplerFilterThe sampler filter for the source texture.

References castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::m_config.

◆ range()

template<typename ConfigT , typename BuilderT >
BuilderT & castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::range ( VkImageSubresourceRange const & range)
inline
Parameters
[in]rangeContains mip levels for the sampler.

References castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::m_config, and castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::range().

Referenced by castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::range().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tex3DResult()

template<typename ConfigT , typename BuilderT >
BuilderT & castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::tex3DResult ( IntermediateView result)
inline

Sets the result used for for 3D texture inputs.

Remarks
The 3D textures must be preprocessed externally to this result.
Parameters
[in]resultThe result.

References castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::m_config.

◆ texcoordConfig()

template<typename ConfigT , typename BuilderT >
BuilderT & castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::texcoordConfig ( rq::Texcoord const & config)
inline
Parameters
[in]configThe texture coordinates configuration.

References castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::m_config.

Member Data Documentation

◆ m_config

template<typename ConfigT , typename BuilderT >
ConfigT castor3d::RenderQuadBuilderT< ConfigT, BuilderT >::m_config
protected

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