Attach sampler
This commit is contained in:
parent
8ee56b0e90
commit
78819dd2ab
1 changed files with 9 additions and 0 deletions
|
@ -160,24 +160,33 @@ impl InventoryEmptyIcons {
|
|||
|
||||
Ok(Self {
|
||||
helmet: Image::from_file(place_holder_settings.helmet.clone())?
|
||||
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
|
||||
.build(engine.device(), engine.queue())?,
|
||||
chest: Image::from_file(place_holder_settings.chest.clone())?
|
||||
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
|
||||
.build(engine.device(), engine.queue())?,
|
||||
belt: Image::from_file(place_holder_settings.belt.clone())?
|
||||
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
|
||||
.build(engine.device(), engine.queue())?,
|
||||
boots: Image::from_file(place_holder_settings.boots.clone())?
|
||||
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
|
||||
.build(engine.device(), engine.queue())?,
|
||||
gloves: Image::from_file(place_holder_settings.gloves.clone())?
|
||||
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
|
||||
.build(engine.device(), engine.queue())?,
|
||||
|
||||
primary_hand: Image::from_file(place_holder_settings.main_hand.clone())?
|
||||
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
|
||||
.build(engine.device(), engine.queue())?,
|
||||
secondary_hand: Image::from_file(place_holder_settings.off_hand.clone())?
|
||||
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
|
||||
.build(engine.device(), engine.queue())?,
|
||||
|
||||
ring: Image::from_file(place_holder_settings.ring.clone())?
|
||||
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
|
||||
.build(engine.device(), engine.queue())?,
|
||||
amulet: Image::from_file(place_holder_settings.amulet.clone())?
|
||||
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
|
||||
.build(engine.device(), engine.queue())?,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue