pub struct Bindings<'a> { /* private fields */ }Expand description
An indexable structure will provides access to Vulkan smart-pointer resources inside a record closure.
This type is available while recording commands in the following closures:
PassRef::record_accelerationfor building and updating acceleration structuresPassRef::record_cmd_buffor general command streamsPipelinePassRef::record_computefor dispatched compute operationsPipelinePassRef::record_subpassfor raster drawing operations, such as triangles streamsPipelinePassRef::record_ray_tracefor ray-traced operations
Examples
Basic usage:
my_graph.begin_pass("custom vulkan commands")
.record_cmd_buf(move |device, cmd_buf, bindings| {
let my_image = &bindings[my_image_node];
assert_ne!(**my_image, vk::Image::null());
assert_eq!(my_image.info.width, 32);
});Trait Implementations§
source§impl<'a> Index<AccelerationStructureLeaseNode> for Bindings<'a>
impl<'a> Index<AccelerationStructureLeaseNode> for Bindings<'a>
§type Output = AccelerationStructure
type Output = AccelerationStructure
The returned type after indexing.
source§impl<'a> Index<AccelerationStructureNode> for Bindings<'a>
impl<'a> Index<AccelerationStructureNode> for Bindings<'a>
§type Output = AccelerationStructure
type Output = AccelerationStructure
The returned type after indexing.
source§impl<'a> Index<AnyAccelerationStructureNode> for Bindings<'a>
impl<'a> Index<AnyAccelerationStructureNode> for Bindings<'a>
§type Output = AccelerationStructure
type Output = AccelerationStructure
The returned type after indexing.