[−][src]Struct bevy_render::draw::DrawContext
Fields
pipelines: ResMut<'a, Assets<PipelineDescriptor>>
shaders: ResMut<'a, Assets<Shader>>
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>(
&self,
render_resource: &T
) -> Result<RenderResourceBinding, DrawError>
[src]
&self,
render_resource: &T
) -> Result<RenderResourceBinding, DrawError>
pub fn get_buffer<T: RenderResource>(
&self,
render_resource: &T,
buffer_usage: BufferUsage
) -> Result<RenderResourceBinding, DrawError>
[src]
&self,
render_resource: &T,
buffer_usage: BufferUsage
) -> 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_bind_groups_from_bindings(
&self,
draw: &mut Draw,
render_resource_bindings: &mut [&mut RenderResourceBindings]
) -> Result<(), DrawError>
[src]
&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> ResourceQuery for DrawContext<'a>
[src]
type Fetch = FetchDrawContext
fn initialize(_resources: &mut Resources, _system_id: Option<SystemId>)
[src]
impl<'a> UnsafeClone for DrawContext<'a>
[src]
unsafe fn unsafe_clone(&self) -> Self
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DrawContext<'a>
impl<'a> Send for DrawContext<'a>
impl<'a> Sync for DrawContext<'a>
impl<'a> Unpin for DrawContext<'a>
impl<'a> !UnwindSafe for DrawContext<'a>
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> Component for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[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> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
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>,