Struct AllResources

Source
pub struct AllResources<'a> {
Show 16 fields pub uniform_buffers: Vec<Resource<'a>>, pub storage_buffers: Vec<Resource<'a>>, pub stage_inputs: Vec<Resource<'a>>, pub stage_outputs: Vec<Resource<'a>>, pub subpass_inputs: Vec<Resource<'a>>, pub storage_images: Vec<Resource<'a>>, pub sampled_images: Vec<Resource<'a>>, pub atomic_counters: Vec<Resource<'a>>, pub acceleration_structures: Vec<Resource<'a>>, pub gl_plain_uniforms: Vec<Resource<'a>>, pub push_constant_buffers: Vec<Resource<'a>>, pub shader_record_buffers: Vec<Resource<'a>>, pub separate_images: Vec<Resource<'a>>, pub separate_samplers: Vec<Resource<'a>>, pub builtin_inputs: Vec<BuiltinResource<'a>>, pub builtin_outputs: Vec<BuiltinResource<'a>>,
}
Expand description

All SPIR-V resources declared in the module.

Fields§

§uniform_buffers: Vec<Resource<'a>>

Uniform buffer (UBOs) resources.

§storage_buffers: Vec<Resource<'a>>

Storage buffer (SSBO) resources.

§stage_inputs: Vec<Resource<'a>>

Shader stage inputs.

§stage_outputs: Vec<Resource<'a>>

Shader stage outputs.

§subpass_inputs: Vec<Resource<'a>>

Shader subpass inputs.

§storage_images: Vec<Resource<'a>>

Storage images (i.e. imageND).

§sampled_images: Vec<Resource<'a>>

Sampled images (i.e. samplerND).

§atomic_counters: Vec<Resource<'a>>

Atomic counters.

§acceleration_structures: Vec<Resource<'a>>

Acceleration structures.

§gl_plain_uniforms: Vec<Resource<'a>>

Legacy OpenGL plain uniforms.

§push_constant_buffers: Vec<Resource<'a>>

Push constant buffers.

There is only ever at most one push constant buffer, but this is multiplicit in case this restriction is lifted.

§shader_record_buffers: Vec<Resource<'a>>

Record buffers.

§separate_images: Vec<Resource<'a>>

For Vulkan GLSL and HLSL sources, split images (i.e. textureND).

§separate_samplers: Vec<Resource<'a>>

For Vulkan GLSL and HLSL sources, split samplers (i.e. sampler).

§builtin_inputs: Vec<BuiltinResource<'a>>

Shader built-in inputs.

§builtin_outputs: Vec<BuiltinResource<'a>>

Shader built-in outputs.

Trait Implementations§

Source§

impl Clone for AllResources<'_>

Source§

fn clone(&self) -> AllResources<'static>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for AllResources<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ToStatic for AllResources<'_>

Source§

type Static<'a> = AllResources<'static> where 'a: 'static

The static type to return.
Source§

fn to_static(&self) -> Self::Static<'static>

Clone the object into an instance with 'static lifetime.

Auto Trait Implementations§

§

impl<'a> Freeze for AllResources<'a>

§

impl<'a> RefUnwindSafe for AllResources<'a>

§

impl<'a> Send for AllResources<'a>

§

impl<'a> Sync for AllResources<'a>

§

impl<'a> Unpin for AllResources<'a>

§

impl<'a> UnwindSafe for AllResources<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.