Attach sampler

This commit is contained in:
hodasemi 2024-08-27 09:07:22 +02:00
parent 8ee56b0e90
commit 78819dd2ab

View file

@ -160,24 +160,33 @@ impl InventoryEmptyIcons {
Ok(Self { Ok(Self {
helmet: Image::from_file(place_holder_settings.helmet.clone())? helmet: Image::from_file(place_holder_settings.helmet.clone())?
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
.build(engine.device(), engine.queue())?, .build(engine.device(), engine.queue())?,
chest: Image::from_file(place_holder_settings.chest.clone())? chest: Image::from_file(place_holder_settings.chest.clone())?
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
.build(engine.device(), engine.queue())?, .build(engine.device(), engine.queue())?,
belt: Image::from_file(place_holder_settings.belt.clone())? belt: Image::from_file(place_holder_settings.belt.clone())?
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
.build(engine.device(), engine.queue())?, .build(engine.device(), engine.queue())?,
boots: Image::from_file(place_holder_settings.boots.clone())? boots: Image::from_file(place_holder_settings.boots.clone())?
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
.build(engine.device(), engine.queue())?, .build(engine.device(), engine.queue())?,
gloves: Image::from_file(place_holder_settings.gloves.clone())? gloves: Image::from_file(place_holder_settings.gloves.clone())?
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
.build(engine.device(), engine.queue())?, .build(engine.device(), engine.queue())?,
primary_hand: Image::from_file(place_holder_settings.main_hand.clone())? primary_hand: Image::from_file(place_holder_settings.main_hand.clone())?
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
.build(engine.device(), engine.queue())?, .build(engine.device(), engine.queue())?,
secondary_hand: Image::from_file(place_holder_settings.off_hand.clone())? secondary_hand: Image::from_file(place_holder_settings.off_hand.clone())?
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
.build(engine.device(), engine.queue())?, .build(engine.device(), engine.queue())?,
ring: Image::from_file(place_holder_settings.ring.clone())? ring: Image::from_file(place_holder_settings.ring.clone())?
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
.build(engine.device(), engine.queue())?, .build(engine.device(), engine.queue())?,
amulet: Image::from_file(place_holder_settings.amulet.clone())? amulet: Image::from_file(place_holder_settings.amulet.clone())?
.attach_sampler(Sampler::pretty_sampler().build(engine.device())?)
.build(engine.device(), engine.queue())?, .build(engine.device(), engine.queue())?,
}) })
} }