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§
Sourcefn is_texture(&self) -> bool
fn is_texture(&self) -> bool
Check if this is a texture port (input, output, or storage)
Sourcefn is_texture_input(&self) -> bool
fn is_texture_input(&self) -> bool
Check if this is a texture input port
Sourcefn is_texture_output(&self) -> bool
fn is_texture_output(&self) -> bool
Check if this is a texture output port
Sourcefn is_texture_storage(&self) -> bool
fn is_texture_storage(&self) -> bool
Check if this is a texture storage port
Sourcefn is_control_output(&self) -> bool
fn is_control_output(&self) -> bool
Check if this is a control output port
Sourcefn is_input(&self) -> bool
fn is_input(&self) -> bool
Check if this is an input port (texture input only - control input is implicit)
Sourcefn is_output(&self) -> bool
fn is_output(&self) -> bool
Check if this is an output port (texture output, storage, or control output)
Sourcefn binding_slot(&self) -> Option<u32>
fn binding_slot(&self) -> Option<u32>
Get binding slot (for texture ports)