An opaque handle representing a sampler.
More...
◆ GPUSampler() [1/2]
constexpr SDL::GPUSampler::GPUSampler |
( |
GPUSamplerRaw |
gPUSampler = {} | ) |
|
|
inlineconstexpr |
- Parameters
-
gPUSampler | the value to be wrapped |
◆ GPUSampler() [2/2]
There are optional properties that can be provided through props
. These are the supported properties:
prop::GPUSampler.CREATE_NAME_STRING
: a name that can be displayed in debugging tools.
- Parameters
-
device | a GPU Context. |
createinfo | a struct describing the state of the sampler to create. |
- Postcondition
- a sampler object on success.
- Exceptions
-
- Since
- This function is available since SDL 3.2.0.
- See also
- GPURenderPass.BindVertexSamplers
-
GPURenderPass.BindFragmentSamplers
-
GPUDevice.ReleaseSampler
◆ operator GPUSamplerRaw()
- Returns
- the underlying GPUSamplerRaw.
The documentation for this class was generated from the following file: