Pipeline resource description. More...
#include <PipelineResourceSignature.h>
Public Attributes | |
| const Char * | Name = nullptr |
| Resource name in the shader. | |
| SHADER_TYPE | ShaderStages = SHADER_TYPE_UNKNOWN |
| Shader stages that this resource applies to. | |
| Uint32 | ArraySize = 1 |
| SHADER_RESOURCE_TYPE | ResourceType = SHADER_RESOURCE_TYPE_UNKNOWN |
| Resource type, see Diligent::SHADER_RESOURCE_TYPE. | |
| SHADER_RESOURCE_VARIABLE_TYPE | VarType = SHADER_RESOURCE_VARIABLE_TYPE_MUTABLE |
| Resource variable type, see Diligent::SHADER_RESOURCE_VARIABLE_TYPE. | |
| PIPELINE_RESOURCE_FLAGS | Flags = PIPELINE_RESOURCE_FLAG_NONE |
| Special resource flags, see Diligent::PIPELINE_RESOURCE_FLAGS. | |
| WebGPUResourceAttribs | WebGPUAttribs = {} |
| WebGPU-specific resource attributes. | |
Pipeline resource description.
| Uint32 Diligent::PipelineResourceDesc::ArraySize = 1 |
Resource array size (must be 1 for non-array resources).
For inline constants (see PIPELINE_RESOURCE_FLAG_INLINE_CONSTANTS), this member specifies the number of 4-byte values.
| SHADER_TYPE Diligent::PipelineResourceDesc::ShaderStages = SHADER_TYPE_UNKNOWN |
Shader stages that this resource applies to.
When multiple shader stages are specified, all stages will share the same resource.
There may be multiple resources with the same name in different shader stages, but the stages specified for different resources with the same name must not overlap.
| WebGPUResourceAttribs Diligent::PipelineResourceDesc::WebGPUAttribs = {} |
WebGPU-specific resource attributes.
WebGPU requires additional information for certain resources. This member is used to provide that information. The member is ignored by all backends other than WebGPU.