24#ifndef PXR_IMAGING_HD_ST_SAMPLER_OBJECT_H
25#define PXR_IMAGING_HD_ST_SAMPLER_OBJECT_H
28#include "pxr/imaging/hdSt/api.h"
30#include "pxr/imaging/hgi/handle.h"
31#include "pxr/imaging/hd/enums.h"
32#include "pxr/imaging/hd/types.h"
36PXR_NAMESPACE_OPEN_SCOPE
43class HdSt_SamplerObjectRegistry;
46using HdStSamplerObjectSharedPtr =
47 std::shared_ptr<class HdStSamplerObject>;
72 HdSt_SamplerObjectRegistry * samplerObjectRegistry);
75 HdSt_SamplerObjectRegistry *
const _samplerObjectRegistry;
88 HdSt_SamplerObjectRegistry * samplerObjectRegistry);
112 HdSt_SamplerObjectRegistry * samplerObjectRegistry);
137 HdSt_SamplerObjectRegistry * samplerObjectRegistry);
144 return _texelsSampler;
150 return _layoutSampler;
169 HdSt_SamplerObjectRegistry * samplerObjectRegistry);
176 return _texelsSampler;
182 return _layoutSampler;
190template<HdTextureType textureType>
191struct HdSt_TypedSamplerObjectHelper;
198template<HdTextureType textureType>
200 typename HdSt_TypedSamplerObjectHelper<textureType>::type;
203struct HdSt_TypedSamplerObjectHelper<HdTextureType::Uv> {
208struct HdSt_TypedSamplerObjectHelper<HdTextureType::Field> {
213struct HdSt_TypedSamplerObjectHelper<HdTextureType::Ptex> {
218struct HdSt_TypedSamplerObjectHelper<HdTextureType::Udim> {
222PXR_NAMESPACE_CLOSE_SCOPE
Collection of standard parameters such as wrap modes to sample a texture.
A sampler suitable for HdStFieldTextureObject.
const HgiSamplerHandle & GetSampler() const
The sampler.
A uvw texture with a bounding box describing how to transform it.
Ptex doesn't bind samplers, so this class is just holding a sampler to resolve handles for bindless t...
const HgiSamplerHandle & GetTexelsSampler() const
The GPU sampler object for the texels texture.
const HgiSamplerHandle & GetLayoutSampler() const
The GPU sampler object for the layout texture.
A base class encapsulating a GPU sampler object.
A template alias such that, e.g., HdStUvSamplerObject can be accessed as HdStTypedSamplerObject<HdTex...
A sampler suitable for Udim textures (wraps one GPU sampler for the texels texture).
const HgiSamplerHandle & GetTexelsSampler() const
The GPU sampler object for the texels texture.
const HgiSamplerHandle & GetLayoutSampler() const
The GPU sampler object for the layout texture.
A sampler suitable for HdStUvTextureObject.
const HgiSamplerHandle & GetSampler() const
The sampler.
A base class for uv textures.
Hydra Graphics Interface.