/// Use the given image as a shader resource (i.e. can sample from the image) in a renderpass
Use the given image as a shader resource  in a renderpass
Use the given image as a shader resource in a renderpass
pub fn sample_image(
        &mut self,
        node: RenderGraphNodeId,
        image: RenderGraphImageUsageId,
        mut constraint: RenderGraphImageConstraint,
        view_options: RenderGraphImageViewOptions,
    ) -> RenderGraphImageUsageId {
        constraint.resource_type |= RafxResourceType::TEXTURE;
        // Add the read to the graph
        let usage = self.add_image_read(node, image, constraint, view_options);
        self.node_mut(node).sampled_images.push(usage);
        usage
    }
pub fn sample_image ( & mut self , node : RenderGraphNodeId , image : RenderGraphImageUsageId , mut constraint : RenderGraphImageConstraint , view_options : RenderGraphImageViewOptions , ) -> RenderGraphImageUsageId { constraint . resource_type |= RafxResourceType :: TEXTURE ; // Add the read to the graph let usage = self . add_image_read ( node , image , constraint , view_options ) ; self . node_mut ( node ) . sampled_images . push ( usage ) ; usage }
Use the given image as a shader resource (i.e.
Use the given image as a shader resource ( i . e .
&mut self
node
RenderGraphNodeId
image
RenderGraphImageUsageId
constraint
RenderGraphImageConstraint
view_options
RenderGraphImageViewOptions