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

An opaque handle representing a compiled shader object. More...

Public Member Functions

constexpr GPUShader (GPUShaderRaw gPUShader={}) noexcept
 Wraps GPUShader.
 GPUShader (GPUDeviceRef device, const GPUShaderCreateInfo &createinfo)
 Creates a shader to be used when creating a graphics pipeline.
constexpr operator GPUShaderRaw () const noexcept
 Unwraps to the underlying GPUShader.

Detailed Description

An opaque handle representing a compiled shader object.

Since
This struct is available since SDL 3.2.0.
See also
GPUDevice.CreateShader
GPUDevice.CreateGraphicsPipeline
GPUDevice.ReleaseShader

Constructor & Destructor Documentation

◆ GPUShader()

SDL::GPUShader::GPUShader ( GPUShaderRaw gPUShader = {})
inlineconstexprnoexcept

Wraps GPUShader.

Parameters
gPUShaderthe value to be wrapped

Member Function Documentation

◆ operator GPUShaderRaw()

SDL::GPUShader::operator GPUShaderRaw ( ) const
inlineconstexprnoexcept

Unwraps to the underlying GPUShader.

Returns
the underlying GPUShaderRaw.

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