![]() |
VPP
0.7
A high-level modern C++ API for Vulkan
|
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... | |
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.
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).