7 #ifndef PXR_IMAGING_HGI_SAMPLER_H 8 #define PXR_IMAGING_HGI_SAMPLER_H 14 #include "pxr/imaging/hgi/api.h" 15 #include "pxr/imaging/hgi/enums.h" 16 #include "pxr/imaging/hgi/handle.h" 17 #include "pxr/imaging/hgi/types.h" 22 PXR_NAMESPACE_OPEN_SCOPE
29 extern TfEnvSetting<int> HGI_MAX_ANISOTROPY;
64 : magFilter(HgiSamplerFilterNearest)
65 , minFilter(HgiSamplerFilterNearest)
66 , mipFilter(HgiMipFilterNotMipmapped)
67 , addressModeU(HgiSamplerAddressModeClampToEdge)
68 , addressModeV(HgiSamplerAddressModeClampToEdge)
69 , addressModeW(HgiSamplerAddressModeClampToEdge)
70 , borderColor(HgiBorderColorTransparentBlack)
71 , enableCompare(
false)
72 , compareFunction(HgiCompareFunctionNever)
76 std::string debugName;
77 HgiSamplerFilter magFilter;
78 HgiSamplerFilter minFilter;
79 HgiMipFilter mipFilter;
80 HgiSamplerAddressMode addressModeU;
81 HgiSamplerAddressMode addressModeV;
82 HgiSamplerAddressMode addressModeW;
83 HgiBorderColor borderColor;
85 HgiCompareFunction compareFunction;
86 uint32_t maxAnisotropy;
143 using HgiSamplerHandleVector = std::vector<HgiSamplerHandle>;
146 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.
Environment setting variable.