Struct spirv_cross2::reflect::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<'_>

Cloning a AllResources will detach its lifetime from the crate::SpirvCrossContext context from which it originated.

source§

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

Returns a copy 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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.