Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::shader::ShaderResource Struct Reference

One resource and the layout of its parameter block, when applicable. More...

#include "donner/gpu/shader/CompiledShader.h"

Public Attributes

ShaderName name
 Authored WGSL resource name.
BindingType type = BindingType::UniformBuffer
 Resource binding category.
uint32_t group = 0
 WGSL group attribute index.
uint32_t binding = 0
 WGSL binding attribute index.
uint32_t minSizeBytes = 0
 Minimum required buffer-binding size in bytes.
uint32_t alignmentBytes = 1
 Reflected WGSL resource type alignment in bytes.
uint32_t runtimeArrayStrideBytes = 0
 Zero for fixed-size resources.
ShaderScalarType runtimeArrayScalarType
 Numeric runtime-array component kind; ignored for structure elements.
uint8_t runtimeArrayLanes = 0
 Zero for non-arrays or structure elements.
uint32_t firstMember = 0
 First reflected member in the artifact member array.
uint32_t memberCount = 0
 Number of reflected members in that range.
TextureFormat storageFormat
 Storage texture format, when this is a storage texture.

Detailed Description

One resource and the layout of its parameter block, when applicable.

Member Data Documentation

◆ alignmentBytes

uint32_t donner::gpu::shader::ShaderResource::alignmentBytes = 1

Reflected WGSL resource type alignment in bytes.

◆ binding

uint32_t donner::gpu::shader::ShaderResource::binding = 0

WGSL binding attribute index.

◆ firstMember

uint32_t donner::gpu::shader::ShaderResource::firstMember = 0

First reflected member in the artifact member array.

◆ group

uint32_t donner::gpu::shader::ShaderResource::group = 0

WGSL group attribute index.

◆ memberCount

uint32_t donner::gpu::shader::ShaderResource::memberCount = 0

Number of reflected members in that range.

◆ minSizeBytes

uint32_t donner::gpu::shader::ShaderResource::minSizeBytes = 0

Minimum required buffer-binding size in bytes.

◆ name

ShaderName donner::gpu::shader::ShaderResource::name

Authored WGSL resource name.

◆ runtimeArrayLanes

uint8_t donner::gpu::shader::ShaderResource::runtimeArrayLanes = 0

Zero for non-arrays or structure elements.

◆ runtimeArrayScalarType

ShaderScalarType donner::gpu::shader::ShaderResource::runtimeArrayScalarType
Initial value:
=
ShaderScalarType::F32

Numeric runtime-array component kind; ignored for structure elements.

◆ runtimeArrayStrideBytes

uint32_t donner::gpu::shader::ShaderResource::runtimeArrayStrideBytes = 0

Zero for fixed-size resources.

◆ storageFormat

TextureFormat donner::gpu::shader::ShaderResource::storageFormat
Initial value:
=
@ RGBA32Float
32-bit float RGBA. Filter intermediates.
Definition Descriptors.h:87

Storage texture format, when this is a storage texture.

◆ type

BindingType donner::gpu::shader::ShaderResource::type = BindingType::UniformBuffer

Resource binding category.


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