PortConfigExt

Trait PortConfigExt 

Source
pub trait PortConfigExt {
    // Required methods
    fn is_texture(&self) -> bool;
    fn is_texture_input(&self) -> bool;
    fn is_texture_output(&self) -> bool;
    fn is_texture_storage(&self) -> bool;
    fn is_control_output(&self) -> bool;
    fn is_input(&self) -> bool;
    fn is_output(&self) -> bool;
    fn binding_slot(&self) -> Option<u32>;
}
Expand description

Extension trait for PortConfig helpers

Required Methods§

Source

fn is_texture(&self) -> bool

Check if this is a texture port (input, output, or storage)

Source

fn is_texture_input(&self) -> bool

Check if this is a texture input port

Source

fn is_texture_output(&self) -> bool

Check if this is a texture output port

Source

fn is_texture_storage(&self) -> bool

Check if this is a texture storage port

Source

fn is_control_output(&self) -> bool

Check if this is a control output port

Source

fn is_input(&self) -> bool

Check if this is an input port (texture input only - control input is implicit)

Source

fn is_output(&self) -> bool

Check if this is an output port (texture output, storage, or control output)

Source

fn binding_slot(&self) -> Option<u32>

Get binding slot (for texture ports)

Implementors§