[−][src]Struct bedrock::ShaderModule
Opaque handle to a shader module object
Methods
impl ShaderModule
[src]
Following methods are enabled with [feature = "Implements"]
pub fn from_memory<Buffer: AsRef<[u8]> + ?Sized>(
device: &Device,
buffer: &Buffer
) -> Result<Self>
[src]
device: &Device,
buffer: &Buffer
) -> Result<Self>
Creates a new shader module object from bytes on the memory
Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
pub fn from_file<FilePath: AsRef<Path> + ?Sized>(
device: &Device,
path: &FilePath
) -> Result<Self, Box<dyn Error>>
[src]
device: &Device,
path: &FilePath
) -> Result<Self, Box<dyn Error>>
Creates a new shader module object from a file
Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
IO Errors may be occured when reading file
Trait Implementations
impl DeviceChild for ShaderModule
[src]
impl Drop for ShaderModule
[src]
impl VkHandle for ShaderModule
[src]
type Handle = VkShaderModule
fn native_ptr(&self) -> VkShaderModule
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ShaderModule
impl !Send for ShaderModule
impl !Sync for ShaderModule
impl Unpin for ShaderModule
impl !UnwindSafe for ShaderModule
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,