pub struct ShaderResources(/* private fields */);Expand description
A handle to shader resources.
Implementations§
Source§impl ShaderResources
impl ShaderResources
Sourcepub fn resources_for_type(
&self,
ty: ResourceType,
) -> Result<ResourceIter<'static>, SpirvCrossError>
pub fn resources_for_type( &self, ty: ResourceType, ) -> Result<ResourceIter<'static>, SpirvCrossError>
Get an iterator for all resources of the given type.
Sourcepub fn builtin_resources_for_type(
&self,
ty: BuiltinResourceType,
) -> Result<BuiltinResourceIter<'static>, SpirvCrossError>
pub fn builtin_resources_for_type( &self, ty: BuiltinResourceType, ) -> Result<BuiltinResourceIter<'static>, SpirvCrossError>
Get an iterator for all builtin resources of the given type.
Sourcepub fn all_resources(&self) -> Result<AllResources<'static>, SpirvCrossError>
pub fn all_resources(&self) -> Result<AllResources<'static>, SpirvCrossError>
Get all resources declared in the shader.
This will allocate a Vec for every resource type.
Auto Trait Implementations§
impl Freeze for ShaderResources
impl RefUnwindSafe for ShaderResources
impl !Send for ShaderResources
impl !Sync for ShaderResources
impl Unpin for ShaderResources
impl UnwindSafe for ShaderResources
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