pub fn modify_storage_image(
        &mut self,
        node: RenderGraphNodeId,
        image: RenderGraphImageUsageId,
        mut constraint: RenderGraphImageConstraint,
        view_options: RenderGraphImageViewOptions,
    ) -> 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 (read_image, write_image) =
            self.add_image_modify(node, image, constraint, view_options);

        self.node_mut(node).storage_image_modifies.push(read_image);
        write_image
    }
/// Use the given storage image as a writable shader resource
Use the given storage image as a writable shader resource
Use the given storage image as a writable shader resource
pub fn modify_storage_image(
        &mut self,
        node: RenderGraphNodeId,
        image: RenderGraphImageUsageId,
        mut constraint: RenderGraphImageConstraint,
        view_options: RenderGraphImageViewOptions,
    ) -> 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 (read_image, write_image) =
            self.add_image_modify(node, image, constraint, view_options);
        self.node_mut(node).storage_image_modifies.push(read_image);
        write_image
    }
pub fn modify_storage_image ( & mut self , node : RenderGraphNodeId , image : RenderGraphImageUsageId , mut constraint : RenderGraphImageConstraint , view_options : RenderGraphImageViewOptions , ) -> 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 ( read_image , write_image ) = self . add_image_modify ( node , image , constraint , view_options ) ; self . node_mut ( node ) . storage_image_modifies . push ( read_image ) ; write_image }
Use the given storage image as a writable shader resource
Use the given storage image as a writable shader resource
&mut self
node
RenderGraphNodeId
image
RenderGraphImageUsageId
constraint
RenderGraphImageConstraint
view_options
RenderGraphImageViewOptions
&mut self
node
RenderGraphNodeId
image
RenderGraphImageUsageId
constraint
RenderGraphImageConstraint
view_options
RenderGraphImageViewOptions