Module spv

Source
Expand description

Backend for SPIR-V (Standard Portable Intermediate Representation).

Modules§

block 🔒
Implementations for BlockContext methods.
helpers 🔒
image 🔒
Generating SPIR-V for image operations.
index 🔒
Bounds-checking for SPIR-V output.
instructions 🔒
layout 🔒
ray 🔒
Generating SPIR-V for ray query operations.
recyclable 🔒
Reusing collections’ previous allocations.
selection 🔒
Generate SPIR-V conditional structures.
subgroup 🔒
writer 🔒

Structs§

BindingInfo
Block 🔒
A SPIR-V block to which we are still adding instructions.
BlockContext 🔒
General information needed to emit SPIR-V for Naga statements.
CachedExpressions 🔒
A map from evaluated Expressions to their SPIR-V ids.
DebugInfo
EntryPointContext 🔒
ExpressionConstnessTracker 🔒
Tracks the expressions for which the backend emits the following instructions:
Function 🔒
FunctionArgument 🔒
GlobalVariable 🔒
The SPIR-V representation of a crate::GlobalVariable.
IdGenerator 🔒
ImageTypeFlags
Flags corresponding to the boolean(-ish) parameters to OpTypeImage.
Instruction 🔒
LocalImageType 🔒
Characteristics of a SPIR-V OpTypeImage type.
LocalVariable 🔒
LogicalLayout 🔒
LookupFunctionType 🔒
Options
PhysicalLayout 🔒
PipelineOptions
ResultMember 🔒
TerminatedBlock 🔒
A SPIR-V block that ends with a termination instruction.
Writer
WriterFlags

Enums§

CachedConstant 🔒
Capability
SPIR-V operand kind: Capability
Dimension 🔒
Error
LocalType 🔒
A SPIR-V type constructed during code generation.
LookupType 🔒
A type encountered during SPIR-V generation.
NumericType 🔒
A numeric type, for use in LocalType.
SourceLanguage
SPIR-V operand kind: SourceLanguage
WrappedFunction 🔒
Key used to look up an operation which we have wrapped in a helper function, which should be called instead of directly emitting code for the expression. See Writer::wrapped_functions.
ZeroInitializeWorkgroupMemoryMode

Constants§

BITS_PER_BYTE 🔒

Functions§

write_vec

Type Aliases§

BindingMap