Struct rspirv::sr::Constant [−][src]
pub struct Constant { /* fields omitted */ }
The class to represent a SPIR-V constant.
Methods
impl Constant
[src]
impl Constant
pub fn is_bool_constant(&self) -> bool
[src]
pub fn is_bool_constant(&self) -> bool
pub fn is_i32_constant(&self) -> bool
[src]
pub fn is_i32_constant(&self) -> bool
pub fn is_u32_constant(&self) -> bool
[src]
pub fn is_u32_constant(&self) -> bool
pub fn is_f32_constant(&self) -> bool
[src]
pub fn is_f32_constant(&self) -> bool
pub fn is_composite_constant(&self) -> bool
[src]
pub fn is_composite_constant(&self) -> bool
pub fn is_null_constant(&self) -> bool
[src]
pub fn is_null_constant(&self) -> bool
pub fn is_sampler_constant(&self) -> bool
[src]
pub fn is_sampler_constant(&self) -> bool
pub fn is_spec_constant(&self) -> bool
[src]
pub fn is_spec_constant(&self) -> bool
pub fn is_spec_op_constant(&self) -> bool
[src]
pub fn is_spec_op_constant(&self) -> bool
Trait Implementations
impl Clone for Constant
[src]
impl Clone for Constant
fn clone(&self) -> Constant
[src]
fn clone(&self) -> Constant
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Constant
[src]
impl Debug for Constant
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Constant
[src]
impl PartialEq for Constant