1 #ifndef DONUT_GRAPHICS_SHADER_STAGE_HPP
2 #define DONUT_GRAPHICS_SHADER_STAGE_HPP
48 explicit operator
bool() const noexcept {
49 return static_cast<bool>(shader);
67 struct ShaderDeleter {
68 void operator()(
Handle handle)
const noexcept;
constexpr Handle get() const noexcept
Get the value of the underlying resource handle.
Definition: UniqueHandle.hpp:152
Compiled GPU code for a specific stage of a ShaderProgram.
Definition: ShaderStage.hpp:20
constexpr ShaderStage() noexcept=default
Construct an empty shader stage without a value.
Handle get() const noexcept
Get an opaque handle to the GPU representation of the shader stage.
Definition: ShaderStage.hpp:62
std::uint32_t Handle
Generic GPU resource handle.
Definition: Handle.hpp:11
ShaderStageType
Type of a ShaderStage in a ShaderProgram.
Definition: ShaderStage.hpp:12
@ VERTEX_SHADER
Vertex shader.
@ FRAGMENT_SHADER
Fragment/pixel shader.