mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 05:23:09 +02:00
use stored Usage(Type), Sampler for KTX
This commit is contained in:
parent
9d56001341
commit
ffdaa09072
1 changed files with 1 additions and 4 deletions
|
@ -494,10 +494,7 @@ void FileReader::read() {
|
||||||
}
|
}
|
||||||
|
|
||||||
auto ktx = resource.staticCast<NetworkTexture>()->_file->getKTX();
|
auto ktx = resource.staticCast<NetworkTexture>()->_file->getKTX();
|
||||||
gpu::Texture::Usage usage;
|
texture.reset(gpu::Texture::unserialize(ktx));
|
||||||
gpu::TextureUsageType usageType(gpu::TextureUsageType::RESOURCE);
|
|
||||||
gpu::Sampler sampler(gpu::Sampler::FILTER_MIN_MAG_MIP_LINEAR);
|
|
||||||
texture.reset(gpu::Texture::unserialize(ktx, usageType, usage, sampler.getDesc()));
|
|
||||||
texture->setKtxBacking(ktx);
|
texture->setKtxBacking(ktx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue