Module spirt::qptr::shapes

source ·
Expand description

Variable shapes (untyped memory layouts vs abstract resources).

Structs

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

Enums

  • 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).
  • “Abstract resource” handle, that can be found in non-memory GlobalVars.