Module shapes

Source
Expand description

Variable shapes (untyped memory layouts vs abstract resources).

Structs§

MaybeDynMemLayout
Untyped memory shape with constant alignment but potentially-dynamic size, roughly corresponding to a Rust (FixedBase, [DynUnit]) type’s layout.
MemLayout
Untyped memory shape with constant alignment and size.

Enums§

GlobalVarShape
GlobalVars are currently used for both chunks of plain data (i.e. memory), and the “shader interface” (inherited by Shader SPIR-V from GLSL, whereas Kernel SPIR-V ended up with OpenCL’s “resources are passed to entry-points as regular function arguments”, with BuiltIn+Input as a sole exception).
Handle
“Abstract resource” handle, that can be found in non-memory GlobalVars.