mirror of
https://github.com/sotrh/learn-wgpu.git
synced 2024-11-16 06:12:55 +00:00
Merge pull request #114 from pudnax/depth_typo
Clean probably missed stuff from '0.5 -> 0.6'
This commit is contained in:
commit
ce3c64aea7
@ -35,7 +35,6 @@ impl Texture {
|
|||||||
let desc = wgpu::TextureDescriptor {
|
let desc = wgpu::TextureDescriptor {
|
||||||
label: Some(label),
|
label: Some(label),
|
||||||
size,
|
size,
|
||||||
array_layer_count: 1,
|
|
||||||
mip_level_count: 1,
|
mip_level_count: 1,
|
||||||
sample_count: 1,
|
sample_count: 1,
|
||||||
dimension: wgpu::TextureDimension::D2,
|
dimension: wgpu::TextureDimension::D2,
|
||||||
@ -45,7 +44,6 @@ impl Texture {
|
|||||||
};
|
};
|
||||||
let texture = device.create_texture(&desc);
|
let texture = device.create_texture(&desc);
|
||||||
|
|
||||||
let texture = device.create_texture(&desc);
|
|
||||||
let view = texture.create_view(&wgpu::TextureViewDescriptor::default());
|
let view = texture.create_view(&wgpu::TextureViewDescriptor::default());
|
||||||
let sampler = device.create_sampler(
|
let sampler = device.create_sampler(
|
||||||
&wgpu::SamplerDescriptor { // 4.
|
&wgpu::SamplerDescriptor { // 4.
|
||||||
|
Loading…
Reference in New Issue
Block a user