[−][src]Struct bevy_render::draw::DrawContext
Fields
pipelines: ResMut<'a, Assets<PipelineDescriptor>>
shaders: ResMut<'a, Assets<Shader>>
asset_render_resource_bindings: ResMut<'a, AssetRenderResourceBindings>
pipeline_compiler: ResMut<'a, PipelineCompiler>
render_resource_context: Res<'a, Box<dyn RenderResourceContext>>
current_pipeline: Option<Handle<PipelineDescriptor>>
Implementations
impl<'a> DrawContext<'a>
[src]
pub fn get_uniform_buffer<T: RenderResource>(
&mut self,
render_resource: &T
) -> Result<RenderResourceBinding, DrawError>
[src]
&mut self,
render_resource: &T
) -> Result<RenderResourceBinding, DrawError>
pub fn set_pipeline(
&mut self,
draw: &mut Draw,
pipeline_handle: &Handle<PipelineDescriptor>,
specialization: &PipelineSpecialization
) -> Result<(), DrawError>
[src]
&mut self,
draw: &mut Draw,
pipeline_handle: &Handle<PipelineDescriptor>,
specialization: &PipelineSpecialization
) -> Result<(), DrawError>
pub fn get_pipeline_descriptor(&self) -> Result<&PipelineDescriptor, DrawError>
[src]
pub fn get_pipeline_layout(&self) -> Result<&PipelineLayout, DrawError>
[src]
pub fn set_asset_bind_groups<T: Asset>(
&mut self,
draw: &mut Draw,
asset_handle: &Handle<T>
) -> Result<(), DrawError>
[src]
&mut self,
draw: &mut Draw,
asset_handle: &Handle<T>
) -> Result<(), DrawError>
pub fn set_bind_groups_from_bindings(
&mut self,
draw: &mut Draw,
render_resource_bindings: &mut [&mut RenderResourceBindings]
) -> Result<(), DrawError>
[src]
&mut self,
draw: &mut Draw,
render_resource_bindings: &mut [&mut RenderResourceBindings]
) -> Result<(), DrawError>
pub fn create_bind_group_resource(
&self,
index: u32,
bind_group: &BindGroup
) -> Result<(), DrawError>
[src]
&self,
index: u32,
bind_group: &BindGroup
) -> Result<(), DrawError>
pub fn set_vertex_buffers_from_bindings(
&self,
draw: &mut Draw,
render_resource_bindings: &[&RenderResourceBindings]
) -> Result<(), DrawError>
[src]
&self,
draw: &mut Draw,
render_resource_bindings: &[&RenderResourceBindings]
) -> Result<(), DrawError>
Trait Implementations
impl<'a> SystemParam for DrawContext<'a>
[src]
type Fetch = FetchDrawContext
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DrawContext<'a>
[src]
impl<'a> !Send for DrawContext<'a>
[src]
impl<'a> !Sync for DrawContext<'a>
[src]
impl<'a> Unpin for DrawContext<'a>
[src]
impl<'a> !UnwindSafe for DrawContext<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,