LLGL 0.05 Beta
Loading...
Searching...
No Matches
LLGL::ShaderResourceReflection Struct Reference

Shader reflection resource structure. More...

#include <ShaderReflection.h>

Public Attributes

BindingDescriptor binding
 Binding descriptor with resource name, binding slot, flags, and array size.
std::uint32_t constantBufferSize = 0
 Specifies the size (in bytes) for a constant buffer resource.
StorageBufferType storageBufferType = StorageBufferType::Undefined
 Specifies the sub-type of a storage buffer resource.

Detailed Description

Shader reflection resource structure.

See also
ShaderReflection::resources
BindingDescriptor

Member Data Documentation

◆ binding

BindingDescriptor LLGL::ShaderResourceReflection::binding

Binding descriptor with resource name, binding slot, flags, and array size.

Remarks
Although the name attribute in the BindingDescriptor structure is optional for pipeline layouts, the shader reflection always queries this attribute as well.

◆ constantBufferSize

std::uint32_t LLGL::ShaderResourceReflection::constantBufferSize = 0

Specifies the size (in bytes) for a constant buffer resource.

Remarks
Additional attribute exclusively used for constant buffer resources. For all other resources, i.e. when type is not equal to ShaderResourceType::ConstantBuffer, this attribute is zero.
See also
ResourceType::ConstantBuffer

◆ storageBufferType

StorageBufferType LLGL::ShaderResourceReflection::storageBufferType = StorageBufferType::Undefined

Specifies the sub-type of a storage buffer resource.

Remarks
Additional attribute exclusively used for storage buffer resources.

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