#include <ShaderDescriptor.hpp>
◆ ShaderDescriptor()
| Graphic::Resource::ShaderDescriptor::ShaderDescriptor |
( |
| ) |
|
|
default |
◆ ~ShaderDescriptor()
| Graphic::Resource::ShaderDescriptor::~ShaderDescriptor |
( |
| ) |
|
|
overridedefault |
◆ addBindGroupLayout()
◆ addOutputColorFormat()
◆ addVertexBufferLayout()
◆ getBindGroupLayout()
◆ getBindGroupLayouts()
| const std::list< Utils::BindGroupLayout > & Graphic::Resource::ShaderDescriptor::getBindGroupLayouts |
( |
| ) |
const |
|
inline |
◆ getCullMode()
| wgpu::CullMode Graphic::Resource::ShaderDescriptor::getCullMode |
( |
| ) |
const |
|
inline |
◆ getFragmentEntryPoint()
| const std::string & Graphic::Resource::ShaderDescriptor::getFragmentEntryPoint |
( |
| ) |
const |
|
inline |
◆ getName()
| const std::string & Graphic::Resource::ShaderDescriptor::getName |
( |
| ) |
const |
|
inline |
◆ getOutputColorFormats()
◆ getOutputDepthFormat()
◆ getPrimitiveTopology()
| wgpu::PrimitiveTopology Graphic::Resource::ShaderDescriptor::getPrimitiveTopology |
( |
| ) |
const |
|
inline |
◆ getShaderSource()
| const std::optional< std::string > & Graphic::Resource::ShaderDescriptor::getShaderSource |
( |
| ) |
const |
|
inline |
◆ getVertexBufferLayout()
◆ getVertexBufferLayouts()
◆ getVertexEntryPoint()
| const std::string & Graphic::Resource::ShaderDescriptor::getVertexEntryPoint |
( |
| ) |
const |
|
inline |
◆ setCullMode()
| ShaderDescriptor & Graphic::Resource::ShaderDescriptor::setCullMode |
( |
wgpu::CullMode | mode | ) |
|
|
inline |
◆ setFragmentEntryPoint()
| ShaderDescriptor & Graphic::Resource::ShaderDescriptor::setFragmentEntryPoint |
( |
std::string_view | entryPoint | ) |
|
|
inline |
◆ setName()
| ShaderDescriptor & Graphic::Resource::ShaderDescriptor::setName |
( |
std::string_view | name | ) |
|
|
inline |
◆ setOutputDepthFormat()
◆ setPrimitiveTopology()
| ShaderDescriptor & Graphic::Resource::ShaderDescriptor::setPrimitiveTopology |
( |
wgpu::PrimitiveTopology | topology | ) |
|
|
inline |
◆ setShader()
| ShaderDescriptor & Graphic::Resource::ShaderDescriptor::setShader |
( |
std::string_view | source | ) |
|
|
inline |
◆ setShaderFromFile()
| ShaderDescriptor & Graphic::Resource::ShaderDescriptor::setShaderFromFile |
( |
const std::filesystem::path & | path | ) |
|
|
inline |
◆ setVertexEntryPoint()
| ShaderDescriptor & Graphic::Resource::ShaderDescriptor::setVertexEntryPoint |
( |
std::string_view | entryPoint | ) |
|
|
inline |
◆ validate()
Validate the ShaderDescriptor and all contained layouts/states.
Performs checks for required top-level fields and aggregates validation results from vertex buffer layouts, bind group layouts, color target states, and optional depth-stencil state. Missing shader source is reported with severity Error; missing name, vertex/fragment entry points or vertex buffer layouts are reported with severity Warning.
- Returns
- std::vector<Utils::ValidationError> A list of validation errors found; empty if none. Each returned error's location is prefixed with contextual information such as "ShaderDescriptor", "ShaderDescriptor::(i)...", or "ShaderDescriptor::DepthStencil".
Implements Graphic::Utils::IValidable.
◆ _bindGroupLayouts
◆ _cullMode
| wgpu::CullMode Graphic::Resource::ShaderDescriptor::_cullMode = wgpu::CullMode::Back |
|
private |
◆ _DEFAULT_FRAGMENT_ENTRY_POINT
| const std::string Graphic::Resource::ShaderDescriptor::_DEFAULT_FRAGMENT_ENTRY_POINT = "fs_main" |
|
inlinestaticprivate |
◆ _DEFAULT_NAME
| const std::string Graphic::Resource::ShaderDescriptor::_DEFAULT_NAME = "Unnamed" |
|
inlinestaticprivate |
◆ _DEFAULT_VERTEX_ENTRY_POINT
| const std::string Graphic::Resource::ShaderDescriptor::_DEFAULT_VERTEX_ENTRY_POINT = "vs_main" |
|
inlinestaticprivate |
◆ _fragmentEntryPoint
| std::optional<std::string> Graphic::Resource::ShaderDescriptor::_fragmentEntryPoint |
|
private |
◆ _name
| std::optional<std::string> Graphic::Resource::ShaderDescriptor::_name |
|
private |
◆ _outputColorFormats
◆ _outputDepthFormat
◆ _primitiveTopology
| wgpu::PrimitiveTopology Graphic::Resource::ShaderDescriptor::_primitiveTopology = wgpu::PrimitiveTopology::TriangleList |
|
private |
◆ _shaderSource
| std::optional<std::string> Graphic::Resource::ShaderDescriptor::_shaderSource |
|
private |
◆ _vertexBufferLayouts
◆ _vertexEntryPoint
| std::optional<std::string> Graphic::Resource::ShaderDescriptor::_vertexEntryPoint |
|
private |
The documentation for this class was generated from the following file: