pub struct StreamArg<T> { /* private fields */ }Expand description
A typed external argument for a CommandStream.
StreamArg values are created with CommandStreamMut::arg while building a stream and are
later bound to parent-graph nodes with CommandStreamRun::with_arg.
let stream = CommandStream::finalize(|stream| {
stream.arg(ImageInfo::image_2d(
640,
480,
vk::Format::R8G8B8A8_UNORM,
vk::ImageUsageFlags::COLOR_ATTACHMENT,
))
})
.into_stream();
let mut graph = Graph::new();
graph
.insert_cmd_stream(&stream)
.with_arg(stream.args, swapchain_image)
.finish();Trait Implementations§
impl<T> Copy for StreamArg<T>
impl<T: Eq> Eq for StreamArg<T>
Source§impl From<StreamArg<AccelerationStructure>> for AnyAccelerationStructureNode
impl From<StreamArg<AccelerationStructure>> for AnyAccelerationStructureNode
Source§fn from(node: AccelerationStructureArg) -> Self
fn from(node: AccelerationStructureArg) -> Self
Converts to this type from the input type.
Source§impl Node for StreamArg<AccelerationStructure>
impl Node for StreamArg<AccelerationStructure>
Source§type Resource = AccelerationStructure
type Resource = AccelerationStructure
The Vulkan buffer, image, or acceleration structure type.
Source§type SyncInfo = AccelerationStructureSyncInfo
type SyncInfo = AccelerationStructureSyncInfo
Synchronization state snapshot returned for this node’s resource type.
Source§impl<T: Ord> Ord for StreamArg<T>
impl<T: Ord> Ord for StreamArg<T>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for StreamArg<T>
impl<T: PartialEq> PartialEq for StreamArg<T>
Source§impl<T: PartialOrd> PartialOrd for StreamArg<T>
impl<T: PartialOrd> PartialOrd for StreamArg<T>
impl<T: PartialEq> StructuralPartialEq for StreamArg<T>
Auto Trait Implementations§
impl<T> Freeze for StreamArg<T>
impl<T> RefUnwindSafe for StreamArg<T>
impl<T> Send for StreamArg<T>
impl<T> Sync for StreamArg<T>
impl<T> Unpin for StreamArg<T>
impl<T> UnsafeUnpin for StreamArg<T>
impl<T> UnwindSafe for StreamArg<T>
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