Shader source and binary code descriptor structure.
More...
#include <ShaderFlags.h>
Shader source and binary code descriptor structure.
- See also
- RenderSystem::CreateShader
◆ ShaderDescriptor() [1/5]
| LLGL::ShaderDescriptor::ShaderDescriptor |
( |
const ShaderDescriptor & | | ) |
|
|
default |
◆ ShaderDescriptor() [2/5]
| LLGL::ShaderDescriptor::ShaderDescriptor |
( |
ShaderDescriptor && | | ) |
|
|
default |
◆ ~ShaderDescriptor()
| LLGL::ShaderDescriptor::~ShaderDescriptor |
( |
| ) |
|
|
default |
◆ ShaderDescriptor() [3/5]
| LLGL::ShaderDescriptor::ShaderDescriptor |
( |
| ) |
|
|
default |
◆ ShaderDescriptor() [4/5]
| LLGL::ShaderDescriptor::ShaderDescriptor |
( |
const ShaderType | type, |
|
|
const char * | source ) |
|
inline |
Constructor to initialize the shader descriptor with a source filename.
◆ ShaderDescriptor() [5/5]
| LLGL::ShaderDescriptor::ShaderDescriptor |
( |
const ShaderType | type, |
|
|
const char * | source, |
|
|
const char * | entryPoint, |
|
|
const char * | profile, |
|
|
long | flags = 0 ) |
|
inline |
Constructor to initialize the shader descriptor with a source filename, entry point, profile, and optional flags.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ compute
Compute shader specific attributes.
- Note
- Only supported with: Metal.
◆ debugName
| const char* LLGL::ShaderDescriptor::debugName = nullptr |
◆ defines
| const ShaderMacro* LLGL::ShaderDescriptor::defines = nullptr |
Optional array of macro definitions. By default null.
◆ entryPoint
| const char* LLGL::ShaderDescriptor::entryPoint = nullptr |
Shader entry point (shader main function). If this is null, the empty string is used. By default null.
- Note
- Only supported with: HLSL, SPIR-V, Metal.
◆ flags
| long LLGL::ShaderDescriptor::flags = 0 |
◆ fragment
Fragment shader specific attributes.
◆ includeHandler
Optional include handler. By default, the backend specific default include handler will be used.
- Note
- Only supported with: Direct3D 11, Direct3D 12.
◆ profile
| const char* LLGL::ShaderDescriptor::profile = nullptr |
◆ source
| const char* LLGL::ShaderDescriptor::source = nullptr |
Pointer to the shader source. This is either a null terminated string or a raw byte buffer (depending on the sourceType member).
- See also
- sourceSize
-
sourceType
◆ sourceSize
| std::size_t LLGL::ShaderDescriptor::sourceSize = 0 |
Specifies the size of the shader source (excluding the null terminator).
- See also
- source
◆ sourceType
◆ type
Specifies the type of the shader, i.e. if it is either a vertex or fragment shader or the like. By default ShaderType::Undefined.
◆ vertex
The documentation for this struct was generated from the following file: