pub fn read_uniform_buffer(
        &mut self,
        node: RenderGraphNodeId,
        buffer: RenderGraphBufferUsageId,
        mut constraint: RenderGraphBufferConstraint,
    ) -> RenderGraphBufferUsageId {
        constraint.resource_type |= RafxResourceType::UNIFORM_BUFFER;

        //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_buffer_read(node, buffer, constraint);
        self.node_mut(node).uniform_buffer_reads.push(buffer);
        usage
    }
/// Use the given buffer as a uniform buffer
Use the given buffer as a uniform buffer
Use the given buffer as a uniform buffer
pub fn read_uniform_buffer(
        &mut self,
        node: RenderGraphNodeId,
        buffer: RenderGraphBufferUsageId,
        mut constraint: RenderGraphBufferConstraint,
    ) -> RenderGraphBufferUsageId {
        constraint.resource_type |= RafxResourceType::UNIFORM_BUFFER;
        //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_buffer_read(node, buffer, constraint);
        self.node_mut(node).uniform_buffer_reads.push(buffer);
        usage
    }
pub fn read_uniform_buffer ( & mut self , node : RenderGraphNodeId , buffer : RenderGraphBufferUsageId , mut constraint : RenderGraphBufferConstraint , ) -> RenderGraphBufferUsageId { constraint . resource_type |= RafxResourceType :: UNIFORM_BUFFER ; //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_buffer_read ( node , buffer , constraint ) ; self . node_mut ( node ) . uniform_buffer_reads . push ( buffer ) ; usage }
Use the given buffer as a uniform buffer
Use the given buffer as a uniform buffer
&mut self
node
RenderGraphNodeId
buffer
RenderGraphBufferUsageId
constraint
RenderGraphBufferConstraint
&mut self
node
RenderGraphNodeId
buffer
RenderGraphBufferUsageId
constraint
RenderGraphBufferConstraint