[−][src]Struct naga::Module
Shader module.
A module is a set of constants, global variables and functions, as well as the types required to define them.
Some functions are marked as entry points, to be used in a certain shader stage.
To create a new module, use Module::from_header
or Module::generate_empty
.
Alternatively, you can load an existing shader using one of the available front ends.
When finished, you can export modules using one of the available back ends.
Fields
header: Header
Header containing module metadata.
types: Arena<Type>
Storage for the types defined in this module.
constants: Arena<Constant>
Storage for the constants defined in this module.
global_variables: Arena<GlobalVariable>
Storage for the global variables defined in this module.
functions: Arena<Function>
Storage for the functions defined in this module.
entry_points: Vec<EntryPoint>
Vector of exported entry points.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,