pub struct ShaderBytecode<'a>(/* private fields */);
Expand description
Wrapper around D3D12_SHADER_BYTECODE structure
Implementations§
Source§impl<'a> ShaderBytecode<'a>
impl<'a> ShaderBytecode<'a>
pub fn new(data: &'a [u8]) -> ShaderBytecode<'a>
Trait Implementations§
Source§impl<'a> Debug for ShaderBytecode<'a>
impl<'a> Debug for ShaderBytecode<'a>
Source§impl<'a> Default for ShaderBytecode<'a>
impl<'a> Default for ShaderBytecode<'a>
Source§fn default() -> ShaderBytecode<'a>
fn default() -> ShaderBytecode<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> Hash for ShaderBytecode<'a>
impl<'a> Hash for ShaderBytecode<'a>
Source§impl<'a> Ord for ShaderBytecode<'a>
impl<'a> Ord for ShaderBytecode<'a>
Source§fn cmp(&self, other: &ShaderBytecode<'a>) -> Ordering
fn cmp(&self, other: &ShaderBytecode<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for ShaderBytecode<'a>
impl<'a> PartialEq for ShaderBytecode<'a>
Source§impl<'a> PartialOrd for ShaderBytecode<'a>
impl<'a> PartialOrd for ShaderBytecode<'a>
impl<'a> Eq for ShaderBytecode<'a>
impl<'a> StructuralPartialEq for ShaderBytecode<'a>
Auto Trait Implementations§
impl<'a> Freeze for ShaderBytecode<'a>
impl<'a> RefUnwindSafe for ShaderBytecode<'a>
impl<'a> !Send for ShaderBytecode<'a>
impl<'a> !Sync for ShaderBytecode<'a>
impl<'a> Unpin for ShaderBytecode<'a>
impl<'a> UnwindSafe for ShaderBytecode<'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