/// Use the given storage image as a read-only shader resource
Use the given storage image as a read-only shader resource
Use the given storage image as a read - only shader resource
pub fn read_storage_image(
        &mut self,
        node: RenderGraphNodeId,
        image: RenderGraphImageUsageId,
        mut constraint: RenderGraphImageConstraint,
        view_options: RenderGraphImageViewOptions,
        // load_op is assumed to be Load, otherwise use create_storage_image
    ) -> RenderGraphImageUsageId {
        constraint.resource_type |= RafxResourceType::TEXTURE_READ_WRITE;
        //TODO: In the future could consider options for determining stage flags to be compute or
        // fragment. Check node queue? Check if attachments exist? Explicit?
        let usage = self.add_image_read(node, image, constraint, view_options);
        self.node_mut(node).storage_image_reads.push(usage);
        usage
    }
pub fn read_storage_image ( & mut self , node : RenderGraphNodeId , image : RenderGraphImageUsageId , mut constraint : RenderGraphImageConstraint , view_options : RenderGraphImageViewOptions , // load_op is assumed to be Load, otherwise use create_storage_image ) -> RenderGraphImageUsageId { constraint . resource_type |= RafxResourceType :: TEXTURE_READ_WRITE ; //TODO: In the future could consider options for determining stage flags to be compute or // fragment. Check node queue? Check if attachments exist? Explicit? let usage = self . add_image_read ( node , image , constraint , view_options ) ; self . node_mut ( node ) . storage_image_reads . push ( usage ) ; usage }
Use the given storage image as a read-only shader resource
Use the given storage image as a read - only shader resource
&mut self
node
RenderGraphNodeId
image
RenderGraphImageUsageId
constraint
RenderGraphImageConstraint
view_options
RenderGraphImageViewOptions