Module reflect

Source
Expand description

SPIR-V reflection helpers and types.

Structs§

ActiveBuiltinsUpdatedProof
Proof that Compiler::update_active_builtins was called.
AllResources
All SPIR-V resources declared in the module.
ArraySizeHole
A size hole requiring the number of elements in a runtime array.
BufferRange
A range over a buffer.
BuiltDummySamplerProof
A proof that Compiler::create_dummy_sampler_for_combined_images was called.
BuiltinResource
Description of a built-in shader resource.
BuiltinResourceIter
Iterator over reflected builtin resources, created by ShaderResources::builtin_resources_for_type.
CombinedImageSampler
A combined image sampler.
CombinedImageSamplerIter
Iterator for CombinedImageSampler.
EntryPoint
A SPIR-V entry point.
EntryPointIter
Iterator type created by Compiler::entry_points.
ExtensionsIter
Iterator for declared extensions, created by Compiler::declared_extensions.
ImageType
Type definition for an image or texture handle.
InterfaceVariableSet
A handle to a set of interface variables.
MatrixStrideHole
A size hole requiring the stride of a matrix, and whether the matrix is column or row major.
Resource
Description of a shader resource.
ResourceIter
Iterator over reflected resources, created by ShaderResources::resources_for_type.
Scalar
A scalar type.
ShaderResources
A handle to shader resources.
SpecializationConstant
A SPIR-V specialization constant
SpecializationConstantIter
An iterator over specialization constants, created by Compiler::specialization_constants.
SpecializationSubConstantIter
Iterator for specialization subconstants created by Compiler::specialization_sub_constants.
StructMember
Type definition for a struct member.
StructType
Type definition for a struct.
Type
A type definition.
UnknownStrideHole
A size hole representing a missing or unknown array stride.
WorkgroupSizeSpecializationConstants
Specialization constants for a workgroup size.

Enums§

ArrayDimension
Valid values that specify the dimensions of an array.
BitWidth
The bit width of a scalar.
BuiltinResourceType
The type of built-in resources to query.
DecorationValue
A value accompanying an OpDecoration
ExecutionModeArguments
Arguments to an OpExecutionMode.
ImageClass
Class of image or texture handle.
ResourceType
The type of resource to query.
ScalarKind
The kind of scalar
TypeInner
Enum with additional type information, depending on the kind of type.
TypeSizeHint
A size hint for a type. This could be a statically known size, or need to resolve a hole before getting a more accurate.

Traits§

ConstantScalar
A marker trait for types that can be represented as a scalar SPIR-V constant.
ConstantValue
A marker trait for types that can be represented as a SPIR-V constant.
ResolveSize
Trait for size hints that need to be resolved against a hole.