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
67 : magFilter(HgiSamplerFilterNearest)
68 , minFilter(HgiSamplerFilterNearest)
69 , mipFilter(HgiMipFilterNotMipmapped)
70 , addressModeU(HgiSamplerAddressModeClampToEdge)
71 , addressModeV(HgiSamplerAddressModeClampToEdge)
72 , addressModeW(HgiSamplerAddressModeClampToEdge)
73 , borderColor(HgiBorderColorTransparentBlack)
74 , enableCompare(
false)
75 , compareFunction(HgiCompareFunctionNever)
78 std::string debugName;
79 HgiSamplerFilter magFilter;
80 HgiSamplerFilter minFilter;
81 HgiMipFilter mipFilter;
82 HgiSamplerAddressMode addressModeU;
83 HgiSamplerAddressMode addressModeV;
84 HgiSamplerAddressMode addressModeW;
85 HgiBorderColor borderColor;
87 HgiCompareFunction compareFunction;
144 using HgiSamplerHandleVector = std::vector<HgiSamplerHandle>;
147 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.