mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-11 05:18:26 +00:00
Inline redundant method
This commit is contained in:
parent
761f27c111
commit
4d45b72045
@ -128,7 +128,13 @@ impl<V> Pipeline<V> {
|
|||||||
attributes: V::ATTRIBUTES,
|
attributes: V::ATTRIBUTES,
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
fragment: Some(shaders.fragment_state()),
|
fragment: Some(wgpu::FragmentState {
|
||||||
|
module: &shaders.shader_module,
|
||||||
|
entry_point: Some("fragment"),
|
||||||
|
compilation_options:
|
||||||
|
wgpu::PipelineCompilationOptions::default(),
|
||||||
|
targets: &shaders.fragment_targets,
|
||||||
|
}),
|
||||||
primitive: wgpu::PrimitiveState {
|
primitive: wgpu::PrimitiveState {
|
||||||
topology: wgpu::PrimitiveTopology::TriangleList,
|
topology: wgpu::PrimitiveTopology::TriangleList,
|
||||||
strip_index_format: None,
|
strip_index_format: None,
|
||||||
|
@ -9,17 +9,6 @@ pub struct Shaders<V> {
|
|||||||
pub _vertex: PhantomData<V>,
|
pub _vertex: PhantomData<V>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<V> Shaders<V> {
|
|
||||||
pub fn fragment_state(&self) -> wgpu::FragmentState {
|
|
||||||
wgpu::FragmentState {
|
|
||||||
module: &self.shader_module,
|
|
||||||
entry_point: Some("fragment"),
|
|
||||||
compilation_options: wgpu::PipelineCompilationOptions::default(),
|
|
||||||
targets: &self.fragment_targets,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Clone, Copy, bytemuck::Pod, bytemuck::Zeroable)]
|
#[derive(Clone, Copy, bytemuck::Pod, bytemuck::Zeroable)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct Uniforms {
|
pub struct Uniforms {
|
||||||
|
Loading…
Reference in New Issue
Block a user