Skip to main content

Crate vulkane_spirv_parse

Crate vulkane_spirv_parse 

Source
Expand description

SPIR-V module model and reflection for Vulkane.

Module::parse decodes a binary SPIR-V module (a &[u32]) into a typed model built on rspirv; Module::to_words encodes it back. Reflection (Module::entry_points, Module::bindings, Module::capabilities) reads the module without validating it: a parsed module can still be invalid SPIR-V, so run spirv-val before trusting one.

Structs§

Binding
A resource variable decorated with a binding.
EntryPoint
One OpEntryPoint with the facts that belong to it.
Module
A decoded SPIR-V module.

Enums§

ParseError
Why a module could not be decoded.