pub struct PushConstantInfo {
pub visibility: ShaderVisibility,
pub shader_register: u32,
pub register_space: u32,
pub num_values: u32,
}Expand description
Describes space in the shader to send data to via CmdBuf::push_constants.
Fields§
§visibility: ShaderVisibilityThe shader stage the constants will be accessible to.
shader_register: u32Register index to bind to (supplied in shader).
register_space: u32Register space to bind to (supplied in shader).
num_values: u32Number of 32-bit values to push.
Trait Implementations§
Source§impl Clone for PushConstantInfo
impl Clone for PushConstantInfo
Source§fn clone(&self) -> PushConstantInfo
fn clone(&self) -> PushConstantInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for PushConstantInfo
impl<'de> Deserialize<'de> for PushConstantInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PushConstantInfo
impl RefUnwindSafe for PushConstantInfo
impl Send for PushConstantInfo
impl Sync for PushConstantInfo
impl Unpin for PushConstantInfo
impl UnsafeUnpin for PushConstantInfo
impl UnwindSafe for PushConstantInfo
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
Mutably borrows from an owned value. Read more