VPP  0.8
A high-level modern C++ API for Vulkan
vpp::inConstSampler< SamplerT > Class Template Reference

Static sampler binding point. More...

#include <vppLangIntImages.hpp>

Public Member Functions

 inConstSampler (const SamplerT &sampler, unsigned int set=0, int binding=-1)
 Creates the binding point. More...
 

Detailed Description

template<class SamplerT>
class vpp::inConstSampler< SamplerT >

Static sampler binding point.

Place inside your custom PipelineConfig (or ComputePipelineConfig) derived class to define a binding point for texture sampler. This sampler can be asociated with a texture by means of MakeSampledTexture() function.

In this variant, the sampler is bound statically to the binding point. Provide a vpp::NormalizedSampler or vpp::UnnormalizedSampler object to the constructor. The sampler cannot be changed.

Constructor & Destructor Documentation

◆ inConstSampler()

template<class SamplerT>
vpp::inConstSampler< SamplerT >::inConstSampler ( const SamplerT &  sampler,
unsigned int  set = 0,
int  binding = -1 
)

Creates the binding point.

Provide a vpp::NormalizedSampler or vpp::UnnormalizedSampler object to the constructor. The sampler cannot be changed.

Optionally you can force the set and binding index. This feature may be useful if you need to interface VPP binding point with externally supplied shader (written in GLSL and compiled externally to SPIR-V blob).


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