Struct lambda_platform::gfx::shader::ShaderModule
source · pub struct ShaderModule<RenderBackend: Backend> { /* private fields */ }
Expand description
Shader modules are used for uploading shaders into the render pipeline.
Implementations§
source§impl<RenderBackend: Backend> ShaderModule<RenderBackend>
impl<RenderBackend: Backend> ShaderModule<RenderBackend>
sourcepub fn destroy(self, gpu: &mut Gpu<RenderBackend>)
pub fn destroy(self, gpu: &mut Gpu<RenderBackend>)
Destroy the shader module and free the memory on the GPU.
sourcepub fn specializations(&self) -> &ShaderSpecializations<'static>
pub fn specializations(&self) -> &ShaderSpecializations<'static>
Get the specializations being applied to the current shader module.