pub struct RenderGraph {
pub pool: ResourcePool,
pub last_frame_times: Option<GpuFrameTimes>,
/* private fields */
}Fields§
§pool: ResourcePool§last_frame_times: Option<GpuFrameTimes>Implementations§
Source§impl RenderGraph
impl RenderGraph
pub fn new( pool: ResourcePool, device: Device, internal_resolution: (u32, u32), output_resolution: (u32, u32), debug_utils: Option<Arc<Device>>, ) -> Self
pub fn enable_timestamps( &mut self, ctx: DeviceContext<'_>, frames_in_flight: u32, command_pool: CommandPool, queue: Queue, ) -> Result<()>
pub fn disable_timestamps(&mut self)
pub fn add_pass(&mut self, node: PassNode) -> PassHandle
pub fn compile(&mut self) -> Result<()>
pub fn bind_resource(&mut self, binding: DescriptorBinding)
pub fn bind_sampled( &mut self, resource: ResourceHandle, set: DescriptorSetId, binding: u32, sampler: SamplerId, )
pub fn allocate(&mut self, gpu: &GpuAssetServer) -> Result<()>
pub fn reset_external_layouts(&mut self)
pub fn execute( &mut self, device: &Device, cmd: CommandBuffer, rw: &RWorld, gpu_assets: &GpuAssetServer, ) -> Result<()>
pub fn mark_submitted(&mut self)
pub fn resize_output( &mut self, new_output: (u32, u32), gpu: &GpuAssetServer, ) -> Result<()>
pub fn resize_internal( &mut self, new_internal: (u32, u32), gpu: &GpuAssetServer, ) -> Result<()>
pub fn internal_resolution(&self) -> (u32, u32)
pub fn output_resolution(&self) -> (u32, u32)
pub fn pass_mut(&mut self, handle: PassHandle) -> &mut PassNode
Auto Trait Implementations§
impl !RefUnwindSafe for RenderGraph
impl !Sync for RenderGraph
impl !UnwindSafe for RenderGraph
impl Freeze for RenderGraph
impl Send for RenderGraph
impl Unpin for RenderGraph
impl UnsafeUnpin for RenderGraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more