[−][src]Struct sfml_rust::canvas::managed::shader::text_shader::TextShader
CanvasShader holds the pipeline and render pass for the input shader source
Trait Implementations
impl CompiledShaderResources for TextShader
[src]
Gives CanvasShader the resource functions
fn get_path(filename: String, shader_type: ShaderType) -> PathBuf
[src]
fn compile(
filepath: PathBuf,
device: Arc<Device>,
shader_type: ShaderType
) -> (Entry, Arc<ShaderModule>)
[src]
filepath: PathBuf,
device: Arc<Device>,
shader_type: ShaderType
) -> (Entry, Arc<ShaderModule>)
fn convert_vk(shader_type: ShaderType) -> GraphicsShaderType
[src]
fn convert_sr(shader_type: ShaderType) -> ShaderKind
[src]
impl CompiledShader for TextShader
[src]
Convenience interface so we don't have to juggle shader types
fn new<V: Vertex>(
filename: String,
device: Arc<Device>,
handle: Arc<CompiledShaderHandle>,
render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> TextShader
[src]
filename: String,
device: Arc<Device>,
handle: Arc<CompiledShaderHandle>,
render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> TextShader
This will explode when the shader does not want to compile
fn get_name(&self) -> String
[src]
fn get_handle(&self) -> Arc<CompiledShaderHandle>
[src]
fn get_pipeline(&self) -> Arc<dyn GraphicsPipelineAbstract + Sync + Send>
[src]
fn get_renderpass(&self) -> Arc<dyn RenderPassAbstract + Send + Sync>
[src]
fn recompile<V: Vertex>(
self,
render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> TextShader
[src]
self,
render_pass: Arc<dyn RenderPassAbstract + Send + Sync>
) -> TextShader
impl Clone for TextShader
[src]
fn clone(&self) -> TextShader
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl Send for TextShader
impl Unpin for TextShader
impl Sync for TextShader
impl !UnwindSafe for TextShader
impl !RefUnwindSafe for TextShader
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,