pub struct BlockIdOperation<'c> { /* private fields */ }
Expand description
A block_id
operation.
Returns the block id, i.e. the index of the current block within the grid
along the x, y, or z dimension
.
Example:
%bIdY = gpu.block_id y
Implementations§
source§impl<'c> BlockIdOperation<'c>
impl<'c> BlockIdOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> BlockIdOperationBuilder<'c, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> BlockIdOperationBuilder<'c, Unset>
Creates a builder.
pub fn dimension(&self) -> Result<Attribute<'c>, Error>
pub fn set_dimension(&mut self, value: Attribute<'c>)
Trait Implementations§
source§impl<'c> From<BlockIdOperation<'c>> for Operation<'c>
impl<'c> From<BlockIdOperation<'c>> for Operation<'c>
source§fn from(operation: BlockIdOperation<'c>) -> Self
fn from(operation: BlockIdOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for BlockIdOperation<'c>
impl<'c> !Send for BlockIdOperation<'c>
impl<'c> !Sync for BlockIdOperation<'c>
impl<'c> Unpin for BlockIdOperation<'c>
impl<'c> UnwindSafe for BlockIdOperation<'c>
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