SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
SDL::GPUSampler Class Reference

An opaque handle representing a sampler. More...

Public Member Functions

constexpr GPUSampler (GPUSamplerRaw gPUSampler={}) noexcept
 Wraps GPUSampler.
 GPUSampler (GPUDeviceRef device, const GPUSamplerCreateInfo &createinfo)
 Creates a sampler object to be used when binding textures in a graphics workflow.
constexpr operator GPUSamplerRaw () const noexcept
 Unwraps to the underlying GPUSampler.

Detailed Description

An opaque handle representing a sampler.

Since
This struct is available since SDL 3.2.0.
See also
GPUDevice.CreateSampler
GPURenderPass.BindVertexSamplers
GPURenderPass.BindFragmentSamplers
GPUDevice.ReleaseSampler

Constructor & Destructor Documentation

◆ GPUSampler()

SDL::GPUSampler::GPUSampler ( GPUSamplerRaw gPUSampler = {})
inlineconstexprnoexcept

Wraps GPUSampler.

Parameters
gPUSamplerthe value to be wrapped

Member Function Documentation

◆ operator GPUSamplerRaw()

SDL::GPUSampler::operator GPUSamplerRaw ( ) const
inlineconstexprnoexcept

Unwraps to the underlying GPUSampler.

Returns
the underlying GPUSamplerRaw.

The documentation for this class was generated from the following file: