HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
sampler.h
Go to the documentation of this file.
1
//
2
// Copyright 2020 Pixar
3
//
4
// Licensed under the terms set forth in the LICENSE.txt file available at
5
// https://openusd.org/license.
6
//
7
#ifndef PXR_IMAGING_HGIGL_SAMPLER_H
8
#define PXR_IMAGING_HGIGL_SAMPLER_H
9
10
#include "
pxr/imaging/hgi/sampler.h
"
11
12
#include "
pxr/imaging/hgiGL/api.h
"
13
14
15
PXR_NAMESPACE_OPEN_SCOPE
16
17
18
using
HgiTextureHandle
=
HgiHandle<class HgiTexture>
;
19
20
///
21
/// \class HgiGLSampler
22
///
23
/// OpenGL implementation of HgiSampler
24
///
25
class
HgiGLSampler
final :
public
HgiSampler
26
{
27
public
:
28
HGIGL_API
29
~HgiGLSampler
()
override
;
30
31
HGIGL_API
32
uint64_t
GetRawResource
()
const override
;
33
34
/// Returns the gl resource id of the sampler.
35
HGIGL_API
36
uint32_t
GetSamplerId
()
const
;
37
38
/// Returns the bindless gpu handle (caller must verify extension support)
39
HGIGL_API
40
uint64_t
GetBindlessHandle
(
HgiTextureHandle
const
&textureHandle);
41
42
protected
:
43
friend
class
HgiGL
;
44
45
HGIGL_API
46
HgiGLSampler
(
HgiSamplerDesc
const
& desc);
47
48
private
:
49
HgiGLSampler
() =
delete
;
50
HgiGLSampler
& operator=(
const
HgiGLSampler
&) =
delete
;
51
HgiGLSampler
(
const
HgiGLSampler
&) =
delete
;
52
53
private
:
54
uint32_t _samplerId;
55
uint32_t _bindlessTextureId;
56
uint64_t _bindlessHandle;
57
};
58
59
60
PXR_NAMESPACE_CLOSE_SCOPE
61
62
#endif
HgiTextureHandle
int HgiHandle< class HgiTexture > HgiTextureHandle
Definition:
ptexTextureObject.h:36
HgiSamplerDesc
Definition:
sampler.h:61
api.h
HgiGLSampler::GetSamplerId
HGIGL_API uint32_t GetSamplerId() const
Returns the gl resource id of the sampler.
HgiSampler
Definition:
sampler.h:107
HgiGL
Definition:
hgi.h:54
HGIGL_API
#define HGIGL_API
Definition:
api.h:23
HgiGLSampler::GetRawResource
HGIGL_API uint64_t GetRawResource() const override
PXR_NAMESPACE_OPEN_SCOPE
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition:
path.h:1425
HgiGLSampler
Definition:
sampler.h:25
sampler.h
PXR_NAMESPACE_CLOSE_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition:
pxr.h:74
HgiGLSampler::GetBindlessHandle
HGIGL_API uint64_t GetBindlessHandle(HgiTextureHandle const &textureHandle)
Returns the bindless gpu handle (caller must verify extension support)
HgiHandle< class HgiTexture >
HgiGLSampler::~HgiGLSampler
HGIGL_API ~HgiGLSampler() override
pxr
imaging
hgiGL
sampler.h
Generated on Wed Aug 27 2025 03:07:56 for HDK by
1.8.6