pub fn write_external_buffer(
        &mut self,
        external_buffer_id: RenderGraphExternalBufferId,
        buffer_id: RenderGraphBufferUsageId,
    ) {
        let version_id = self.buffer_version_id(buffer_id);
        let usage_id = self.add_buffer_usage(
            RenderGraphBufferUser::Output(external_buffer_id),
            version_id,
            RenderGraphBufferUsageType::Output,
        );

        let buffer_version = self.buffer_version_info_mut(buffer_id);
        buffer_version.read_usages.push(usage_id);

        self.external_buffers[external_buffer_id.0].output_usage = Some(usage_id);
    }
/// Use an external buffer as an output for a render graph node
Use an external buffer as an output for a render graph node
Use an external buffer as an output for a render graph node
pub fn write_external_buffer(
        &mut self,
        external_buffer_id: RenderGraphExternalBufferId,
        buffer_id: RenderGraphBufferUsageId,
    ) {
        let version_id = self.buffer_version_id(buffer_id);
        let usage_id = self.add_buffer_usage(
            RenderGraphBufferUser::Output(external_buffer_id),
            version_id,
            RenderGraphBufferUsageType::Output,
        );
        let buffer_version = self.buffer_version_info_mut(buffer_id);
        buffer_version.read_usages.push(usage_id);
        self.external_buffers[external_buffer_id.0].output_usage = Some(usage_id);
    }
pub fn write_external_buffer ( & mut self , external_buffer_id : RenderGraphExternalBufferId , buffer_id : RenderGraphBufferUsageId , ) { let version_id = self . buffer_version_id ( buffer_id ) ; let usage_id = self . add_buffer_usage ( RenderGraphBufferUser :: Output ( external_buffer_id ) , version_id , RenderGraphBufferUsageType :: Output , ) ; let buffer_version = self . buffer_version_info_mut ( buffer_id ) ; buffer_version . read_usages . push ( usage_id ) ; self . external_buffers [ external_buffer_id . 0 ] . output_usage = Some ( usage_id ) ; }
Use an external buffer as an output for a render graph node
Use an external buffer as an output for a render graph node
&mut self
external_buffer_id
RenderGraphExternalBufferId
buffer_id
RenderGraphBufferUsageId
&mut self
external_buffer_id
RenderGraphExternalBufferId
buffer_id
RenderGraphBufferUsageId