Skip to main content

Nodes

Enum Nodes 

Source
pub enum Nodes {
Show 20 variants Null, Scope { name: String, children: Vec<NodeReference>, }, Struct { name: String, template: Option<NodeReference>, fields: Vec<NodeReference>, types: Vec<NodeReference>, }, Member { name: String, type: NodeReference, count: Option<NonZeroUsize>, }, Function { name: String, params: Vec<NodeReference>, return_type: NodeReference, statements: Vec<NodeReference>, }, Conditional { condition: NodeReference, statements: Vec<NodeReference>, }, ForLoop { initializer: NodeReference, condition: NodeReference, update: NodeReference, statements: Vec<NodeReference>, }, Specialization { name: String, type: NodeReference, }, Expression(Expressions), Raw { glsl: Option<String>, hlsl: Option<String>, msl: Option<String>, input: Vec<NodeReference>, output: Vec<NodeReference>, }, Binding { name: String, slot: u32, read: bool, write: bool, type: BindingTypes, count: Option<NonZeroU32>, }, PushConstant { members: Vec<NodeReference>, }, Intrinsic { name: String, elements: Vec<NodeReference>, return: NodeReference, }, Input { name: String, format: NodeReference, location: u8, }, Output { name: String, format: NodeReference, location: u8, count: Option<NonZeroUsize>, }, TaskPayload { name: String, format: NodeReference, count: NonZeroUsize, }, Workgroup { name: String, format: NodeReference, }, Parameter { name: String, type: NodeReference, }, Literal { name: String, value: NodeReference, }, Const { name: String, type: NodeReference, value: NodeReference, },
}

Variants§

§

Null

§

Scope

Fields

§name: String
§children: Vec<NodeReference>
§

Struct

§

Member

§

Function

Fields

§name: String
§return_type: NodeReference
§statements: Vec<NodeReference>
§

Conditional

Fields

§condition: NodeReference
§statements: Vec<NodeReference>
§

ForLoop

Fields

§initializer: NodeReference
§condition: NodeReference
§statements: Vec<NodeReference>
§

Specialization

Fields

§name: String
§

Expression(Expressions)

§

Raw

§

Binding

Fields

§name: String
§slot: u32
§read: bool
§write: bool
§

PushConstant

Fields

§

Intrinsic

Fields

§name: String
§elements: Vec<NodeReference>
§

Input

Fields

§name: String
§location: u8
§

Output

Fields

§name: String
§location: u8
§

TaskPayload

Fields

§name: String
§

Workgroup

Fields

§name: String
§

Parameter

Fields

§name: String
§

Literal

Fields

§name: String
§

Const

A named module-level value known at compile time.

Implementations§

Source§

impl Nodes

Source

pub fn is_leaf(&self) -> bool

Source

pub fn is_indexable(&self) -> bool

Source

pub fn is_buffer_binding(&self) -> bool

Trait Implementations§

Source§

impl Clone for Nodes

Source§

fn clone(&self) -> Nodes

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Nodes

§

impl !Send for Nodes

§

impl !Sync for Nodes

§

impl !UnwindSafe for Nodes

§

impl Freeze for Nodes

§

impl Unpin for Nodes

§

impl UnsafeUnpin for Nodes

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.