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<'_>
impl Clone for AllResources<'_>
Source§fn clone(&self) -> AllResources<'static>
fn clone(&self) -> AllResources<'static>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for AllResources<'a>
impl<'a> Debug for AllResources<'a>
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> 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