Fonts, glyphs, displaying fps
This commit is contained in:
@@ -20,7 +20,6 @@ pub struct Content {
|
||||
impl Content {
|
||||
|
||||
pub fn new(device: &wgpu::Device) -> Self {
|
||||
|
||||
// Create node buffer
|
||||
let node_buffer = vec![0_u32; (NODE_TEX_SIZE*NODE_TEX_SIZE*NODE_TEX_SIZE) as usize].into_boxed_slice();
|
||||
|
||||
@@ -43,10 +42,6 @@ impl Content {
|
||||
);
|
||||
|
||||
// Bind layout
|
||||
// let sampler_entry = wgpu::BindGroupLayoutEntry {
|
||||
// binding: 0,visibility: wgpu::ShaderStage::FRAGMENT, count: None,
|
||||
// ty: wgpu::BindingType::Sampler { comparison: false, filtering: false },
|
||||
// };
|
||||
let texture_entry = wgpu::BindGroupLayoutEntry {
|
||||
binding: 0, visibility: wgpu::ShaderStage::FRAGMENT, count: None,
|
||||
ty: wgpu::BindingType::Texture { multisampled: false, view_dimension: wgpu::TextureViewDimension::D3, sample_type: wgpu::TextureSampleType::Uint },
|
||||
@@ -56,8 +51,6 @@ impl Content {
|
||||
label: None, entries: &[
|
||||
wgpu::BindGroupLayoutEntry { binding: 0, ..texture_entry },
|
||||
wgpu::BindGroupLayoutEntry { binding: 1, ..texture_entry },
|
||||
//wgpu::BindGroupLayoutEntry { binding: 2, ..sampler_entry },
|
||||
//wgpu::BindGroupLayoutEntry { binding: 3, ..sampler_entry },
|
||||
],
|
||||
}
|
||||
);
|
||||
@@ -69,8 +62,6 @@ impl Content {
|
||||
entries: &[
|
||||
wgpu::BindGroupEntry { binding: 0, resource: wgpu::BindingResource::TextureView(&node_texture.create_view(&wgpu::TextureViewDescriptor::default())) },
|
||||
wgpu::BindGroupEntry { binding: 1, resource: wgpu::BindingResource::TextureView(&block_texture.create_view(&wgpu::TextureViewDescriptor::default())) },
|
||||
//wgpu::BindGroupEntry { binding: 2, resource: wgpu::BindingResource::Sampler(&device.create_sampler(&Default::default())) },
|
||||
//wgpu::BindGroupEntry { binding: 3, resource: wgpu::BindingResource::Sampler(&device.create_sampler(&Default::default())) }
|
||||
],
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user