34 int offsets [ 4 ][ 2 ];
68 template<
class TextureT,
class SamplerT >
81 template<
class TextureT >
96 template<
class ImageT >
112 template<
class ImageT,
class LodT >
124 template<
class ImageT >
135 template<
class ImageT >
152 template<
class ImageT,
class CoordsT >
171 template<
class ImageT >
191 template<
class ImageT >
209 template<
class ImageT >
231 template<
class ImageT >
246 template<
class ImageT,
class CoordsT >
247 auto ImageLoad (
const ImageT& image,
const CoordsT& coords );
263 template<
class ImageT,
class CoordsT >
264 auto ImageLoad (
const ImageT& image,
const CoordsT& coords,
const Int& nSample );
281 template<
class ImageT,
class CoordsT,
class ValueT >
282 void ImageStore (
const ImageT& image,
const CoordsT& coords,
const ValueT& value );
301 template<
class ImageT,
class CoordsT,
class ValueT >
302 void ImageStore (
const ImageT& image,
const CoordsT& coords,
const ValueT& value,
const Int& nSample );
327 template<
class TextureT,
class CoordsT >
328 auto TexelFetch (
const TextureT& texture,
const CoordsT& coords );
355 template<
class TextureT,
class CoordsT >
356 auto TexelFetch (
const TextureT& texture,
const CoordsT& coords,
const Int& nSample );
379 template<
class TextureT,
class CoordsT >
380 auto TexelFetchLod (
const TextureT& texture,
const CoordsT& coords,
const Int& nLevel );
409 template<
class TextureT,
class CoordsT,
class OffsetT >
410 auto TexelFetchOffset (
const TextureT& texture,
const CoordsT& coords,
const OffsetT& offset );
441 template<
class TextureT,
class CoordsT,
class OffsetT >
442 auto TexelFetchLodOffset (
const TextureT& texture,
const CoordsT& coords,
const Int& nLevel,
const OffsetT& offset );
478 template<
class TextureT,
class CoordsT >
479 auto Texture (
const TextureT& texture,
const CoordsT& coords );
494 template<
class TextureT,
class CoordsT >
495 auto Texture (
const TextureT& texture,
const CoordsT& coords,
const Float& bias );
510 template<
class TextureT,
class CoordsT,
class OffsetT >
511 auto Texture (
const TextureT& texture,
const CoordsT& coords,
const OffsetT& offset );
531 template<
class TextureT,
class CoordsT,
class GradT >
532 auto Texture (
const TextureT& texture,
const CoordsT& coords,
const GradT& gradX,
const GradT& gradY );
553 template<
class TextureT,
class CoordsT,
class OffsetT,
class GradT >
554 auto Texture (
const TextureT& texture,
const CoordsT& coords,
const OffsetT& offset,
const GradT& gradX,
const GradT& gradY );
572 template<
class TextureT,
class CoordsT >
573 auto TextureLod (
const TextureT& texture,
const CoordsT& coords,
const Float& lod );
592 template<
class TextureT,
class CoordsT,
class OffsetT >
593 auto TextureLod (
const TextureT& texture,
const CoordsT& coords,
const OffsetT& offset,
const Float& lod );
611 template<
class TextureT,
class CoordsT >
612 auto TextureProj (
const TextureT& texture,
const CoordsT& coords );
625 template<
class TextureT,
class CoordsT >
626 auto TextureProj (
const TextureT& texture,
const CoordsT& coords,
const Float& bias );
641 template<
class TextureT,
class CoordsT,
class OffsetT >
642 auto TextureProj (
const TextureT& texture,
const CoordsT& coords,
const OffsetT& offset );
658 template<
class TextureT,
class CoordsT,
class OffsetT >
659 auto TextureProj (
const TextureT& texture,
const CoordsT& coords,
const OffsetT& offset,
const Float& bias );
673 template<
class TextureT,
class CoordsT,
class GradT >
674 auto TextureProj (
const TextureT& texture,
const CoordsT& coords,
const GradT& gradX,
const GradT& gradY );
690 template<
class TextureT,
class CoordsT,
class OffsetT,
class GradT >
691 auto TextureProj (
const TextureT& texture,
const CoordsT& coords,
const OffsetT& offset,
const GradT& gradX,
const GradT& gradY );
707 template<
class TextureT,
class CoordsT >
726 template<
class TextureT,
class CoordsT,
class OffsetT >
727 auto TextureLodProj (
const TextureT& texture,
const CoordsT& coords,
const OffsetT& offset,
const Float& lod );
735 template<
class TextureT,
class Arg1T,
class Arg2T >
736 auto TextureDref (
const TextureT& texture,
const Arg1T& arg1,
const Arg2T& arg2 );
744 template<
class TextureT,
class Arg1T,
class Arg2T,
class Arg3T >
745 auto TextureDref (
const TextureT& texture,
const Arg1T& arg1,
const Arg2T& arg2,
const Arg3T& arg3 );
753 template<
class TextureT,
class Arg1T,
class Arg2T,
class Arg3T,
class Arg4T >
754 auto TextureDref (
const TextureT& texture,
const Arg1T& arg1,
const Arg2T& arg2,
const Arg3T& arg3,
const Arg4T& arg4 );
762 template<
class TextureT,
class Arg1T,
class Arg2T,
class Arg3T,
class Arg4T,
class Arg5T >
763 auto TextureDref (
const TextureT& texture,
const Arg1T& arg1,
const Arg2T& arg2,
const Arg3T& arg3,
const Arg4T& arg4,
const Arg5T& arg5 );
771 template<
class TextureT,
class Arg1T,
class Arg2T,
class Arg3T >
772 auto TextureLodDref (
const TextureT& texture,
const Arg1T& arg1,
const Arg2T& arg2,
const Arg3T& arg3 );
780 template<
class TextureT,
class Arg1T,
class Arg2T,
class Arg3T,
class Arg4T >
781 auto TextureLodDref (
const TextureT& texture,
const Arg1T& arg1,
const Arg2T& arg2,
const Arg3T& arg3,
const Arg4T& arg4 );
789 template<
class TextureT,
class Arg1T,
class Arg2T >
790 auto TextureProjDref (
const TextureT& texture,
const Arg1T& arg1,
const Arg2T& arg2 );
798 template<
class TextureT,
class Arg1T,
class Arg2T,
class Arg3T >
799 auto TextureProjDref (
const TextureT& texture,
const Arg1T& arg1,
const Arg2T& arg2,
const Arg3T& arg3 );
807 template<
class TextureT,
class Arg1T,
class Arg2T,
class Arg3T,
class Arg4T >
808 auto TextureProjDref (
const TextureT& texture,
const Arg1T& arg1,
const Arg2T& arg2,
const Arg3T& arg3,
const Arg4T& arg4 );
816 template<
class TextureT,
class Arg1T,
class Arg2T,
class Arg3T,
class Arg4T,
class Arg5T >
817 auto TextureProjDref (
const TextureT& texture,
const Arg1T& arg1,
const Arg2T& arg2,
const Arg3T& arg3,
const Arg4T& arg4,
const Arg5T& arg5 );
825 template<
class TextureT,
class Arg1T,
class Arg2T,
class Arg3T >
826 auto TextureLodProjDref (
const TextureT& texture,
const Arg1T& arg1,
const Arg2T& arg2,
const Arg3T& arg3 );
834 template<
class TextureT,
class Arg1T,
class Arg2T,
class Arg3T,
class Arg4T >
835 auto TextureLodProjDref (
const TextureT& texture,
const Arg1T& arg1,
const Arg2T& arg2,
const Arg3T& arg3,
const Arg4T& arg4 );
843 template<
class TextureT,
class Arg1T,
class Arg2T >
844 auto TextureGather (
const TextureT& texture,
const Arg1T& arg1,
const Arg2T& arg2 );
852 template<
class TextureT,
class Arg1T,
class Arg2T,
class Arg3T >
853 auto TextureGather (
const TextureT& texture,
const Arg1T& arg1,
const Arg2T& arg2,
const Arg3T& arg3 );
861 template<
class TextureT,
class Arg1T,
class Arg2T,
class Arg3T >
862 auto TextureGatherDref (
const TextureT& texture,
const Arg1T& arg1,
const Arg2T& arg2,
const Arg3T& arg3 );
Vec2 TextureQueryLod(const ImageT &image, const CoordsT &coords)
Retrieves the mipmap level and the level of detail for a hypothetical sampling of image at coordinate...
auto TexelFetchLod(const TextureT &texture, const CoordsT &coords, const Int &nLevel)
Reads a texel from a specified MIP level of texture without sampling.
auto TextureLod(const TextureT &texture, const CoordsT &coords, const Float &lod)
Samples a texel from a texture with explicit MIP levels selection.
auto ImageSize(const ImageT &image)
Retrieves the extent of specified image.
auto TextureLodProj(const TextureT &texture, const CoordsT &coords, const Float &lod)
Samples a texel from a texture with perspective division and explicit MIP levels selection.
The VPP namespace.
Definition: main.hpp:1
auto Texture(const TextureT &texture, const CoordsT &coords)
Samples a texel from a texture.
void ImageStore(const ImageT &image, const CoordsT &coords, const ValueT &value)
Writes a pixel to a storage image.
Int ImageQuerySamples(const ImageT &image)
Retrieves the number of samples per pixel in the image.
auto TextureSize(const ImageT &image, const Int &lod)
Retrieves the extent of specified MIP image level.
auto TextureDref(const TextureT &texture, const Arg1T &arg1, const Arg2T &arg2)
auto TexelFetch(const TextureT &texture, const CoordsT &coords)
Reads a texel from a texture without sampling.
auto TextureLodProjDref(const TextureT &texture, const Arg1T &arg1, const Arg2T &arg2, const Arg3T &arg3)
Shader (GPU-side) data type for 2-element 32-bit integer vectors.
Definition: vppLangVectorTypes.hpp:817
auto TextureGatherDref(const TextureT &texture, const Arg1T &arg1, const Arg2T &arg2, const Arg3T &arg3)
auto TextureProj(const TextureT &texture, const CoordsT &coords)
Samples a texel from a texture with perspective division.
Shader (GPU-side) data type for 32-bit floating point values.
Definition: vppLangScalarTypes.hpp:356
Shader (GPU-side) data type for 2-element 32-bit float vectors.
Definition: vppLangVectorTypes.hpp:593
auto SubpassLoad(const ImageT &image)
Reads a pixel from input attachment.
Shader (GPU-side) data type for 32-bit signed integer values.
Definition: vppLangScalarTypes.hpp:162
Definition: vppLangImgFun.hpp:31
auto TexelFetchLodOffset(const TextureT &texture, const CoordsT &coords, const Int &nLevel, const OffsetT &offset)
Reads a texel from a specified MIP level (with coordinate offset) of texture without sampling...
auto TextureProjDref(const TextureT &texture, const Arg1T &arg1, const Arg2T &arg2)
auto TexelFetchOffset(const TextureT &texture, const CoordsT &coords, const OffsetT &offset)
Reads a texel (with coordinate offset) from a texture without sampling.
auto TextureGather(const TextureT &texture, const Arg1T &arg1, const Arg2T &arg2)
auto ImageLoad(const ImageT &image, const CoordsT &coords)
Reads a pixel from a storage image.
auto TextureLodDref(const TextureT &texture, const Arg1T &arg1, const Arg2T &arg2, const Arg3T &arg3)
auto MakeSampledTexture(const TextureT &texture, const SamplerT &sampler)
Converts texture and sampler pair to combined sampled texture.
Int ImageQueryLevels(const ImageT &image)
Retrieves the number of MIP levels in the image.
auto ExtractSampledTexture(const TextureT &texture)
Extracts the texture part from combined sampled texture.