Skip to main content

BufferArg

Type Alias BufferArg 

Source
pub type BufferArg = StreamArg<Buffer>;
Expand description

A stream argument for a buffer.

let stream = CommandStream::finalize(|stream| -> BufferArg {
    stream.arg(BufferInfo::device_mem(
        4096,
        vk::BufferUsageFlags::STORAGE_BUFFER,
    ))
})
.into_stream();

Aliased Type§

pub struct BufferArg { /* private fields */ }

Trait Implementations§

Source§

impl Subresource for BufferArg

Source§

type Info = <StreamArg<Buffer> as Subresource>::Range

The information about the subresource when bound directly to shader descriptors.
Source§

type Range = BufferSubresourceRange

The information about the subresource when used indirectly by any part of a graph.