24 #ifndef PXR_IMAGING_HGI_SAMPLER_H
25 #define PXR_IMAGING_HGI_SAMPLER_H
28 #include "pxr/imaging/hgi/api.h"
29 #include "pxr/imaging/hgi/enums.h"
30 #include "pxr/imaging/hgi/handle.h"
31 #include "pxr/imaging/hgi/types.h"
36 PXR_NAMESPACE_OPEN_SCOPE
61 : magFilter(HgiSamplerFilterNearest)
62 , minFilter(HgiSamplerFilterNearest)
63 , mipFilter(HgiMipFilterNotMipmapped)
64 , addressModeU(HgiSamplerAddressModeClampToEdge)
65 , addressModeV(HgiSamplerAddressModeClampToEdge)
66 , addressModeW(HgiSamplerAddressModeClampToEdge)
69 std::string debugName;
70 HgiSamplerFilter magFilter;
71 HgiSamplerFilter minFilter;
72 HgiMipFilter mipFilter;
73 HgiSamplerAddressMode addressModeU;
74 HgiSamplerAddressMode addressModeV;
75 HgiSamplerAddressMode addressModeW;
126 HgiSampler() =
delete;
127 HgiSampler & operator=(
const HgiSampler&) =
delete;
128 HgiSampler(
const HgiSampler&) =
delete;
132 using HgiSamplerHandleVector = std::vector<HgiSamplerHandle>;
135 PXR_NAMESPACE_CLOSE_SCOPE
virtual HGI_API uint64_t GetRawResource() const =0
This function returns the handle to the Hgi backend's gpu resource, cast to a uint64_t.
AR_API bool operator!=(const ArAssetInfo &lhs, const ArAssetInfo &rhs)
AR_API bool operator==(const ArAssetInfo &lhs, const ArAssetInfo &rhs)
Describes the properties needed to create a GPU sampler.
Represents a graphics platform independent GPU sampler resource that perform texture sampling operati...
HGI_API HgiSamplerDesc const & GetDescriptor() const
The descriptor describes the object.