pub struct FunctionInfo {
pub available_stages: ShaderStages,
pub uniformity: Uniformity,
pub may_kill: bool,
pub sampling_set: FastHashSet<SamplingKey>,
pub dual_source_blending: bool,
/* private fields */
}
Fields§
§available_stages: ShaderStages
Set of shader stages where calling this function is valid.
uniformity: Uniformity
Uniformity characteristics.
may_kill: bool
Function may kill the invocation.
sampling_set: FastHashSet<SamplingKey>
All pairs of (texture, sampler) globals that may be used together in sampling operations by this function and its callees. This includes pairings that arise when this function passes textures and samplers as arguments to its callees.
This table does not include uses of textures and samplers passed as arguments to this function itself, since we do not know which globals those will be. However, this table is exhaustive when computed for an entry point function: entry points never receive textures or samplers as arguments, so all an entry point’s sampling can be reported in terms of globals.
The GLSL back end uses this table to construct reflection info that clients need to construct texture-combined sampler values.
dual_source_blending: bool
Indicates that the function is using dual source blending.
Implementations§
Source§impl FunctionInfo
impl FunctionInfo
pub const fn global_variable_count(&self) -> usize
pub const fn expression_count(&self) -> usize
pub fn dominates_global_use(&self, other: &Self) -> bool
Trait Implementations§
Source§impl Clone for FunctionInfo
impl Clone for FunctionInfo
Source§fn clone(&self) -> FunctionInfo
fn clone(&self) -> FunctionInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FunctionInfo
impl Debug for FunctionInfo
Source§impl Index<Handle<Expression>> for FunctionInfo
impl Index<Handle<Expression>> for FunctionInfo
Source§type Output = ExpressionInfo
type Output = ExpressionInfo
Source§fn index(&self, handle: Handle<Expression>) -> &ExpressionInfo
fn index(&self, handle: Handle<Expression>) -> &ExpressionInfo
container[index]
) operation. Read moreAuto Trait Implementations§
impl Freeze for FunctionInfo
impl RefUnwindSafe for FunctionInfo
impl Send for FunctionInfo
impl Sync for FunctionInfo
impl Unpin for FunctionInfo
impl UnwindSafe for FunctionInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)