| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <nn/gfx/detail/gfx_Sampler-api.nvn.8.h> |
| 4 | #include <nn/gfx/gfx_Common.h> |
| 5 | |
| 6 | namespace nn::gfx { |
| 7 | |
| 8 | template <class TTarget> |
| 9 | class TSampler : public detail::SamplerImpl<TTarget> { |
| 10 | NN_NO_COPY(TSampler); |
| 11 | |
| 12 | public: |
| 13 | typedef SamplerInfo InfoType; |
| 14 | |
| 15 | TSampler(); |
| 16 | void Initialize(TDevice<TTarget>*, const InfoType&); |
| 17 | void Finalize(TDevice<TTarget>*); |
| 18 | void SetUserPtr(void*); |
| 19 | void* GetUserPtr(); |
| 20 | const void* GetUserPtr() const; |
| 21 | }; |
| 22 | |
| 23 | } // namespace nn::gfx |