Struct wgpu_types::ShaderBoundChecks
source · [−]pub struct ShaderBoundChecks { /* private fields */ }
Expand description
Describes how shader bound checks should be performed.
Implementations
sourceimpl ShaderBoundChecks
impl ShaderBoundChecks
sourcepub unsafe fn unchecked() -> Self
pub unsafe fn unchecked() -> Self
Creates a new configuration where the shader isn’t bound checked.
Safety
The caller MUST ensure that all shaders built with this configuration don’t perform any out of bounds reads or writes.
sourcepub fn runtime_checks(&self) -> bool
pub fn runtime_checks(&self) -> bool
Query whether runtime bound checks are enabled in this configuration
Trait Implementations
sourceimpl Clone for ShaderBoundChecks
impl Clone for ShaderBoundChecks
sourcefn clone(&self) -> ShaderBoundChecks
fn clone(&self) -> ShaderBoundChecks
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ShaderBoundChecks
impl Debug for ShaderBoundChecks
Auto Trait Implementations
impl RefUnwindSafe for ShaderBoundChecks
impl Send for ShaderBoundChecks
impl Sync for ShaderBoundChecks
impl Unpin for ShaderBoundChecks
impl UnwindSafe for ShaderBoundChecks
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more