NativePipeline external texture (#15946)

* NativePipeline external texture

* fix lint.

* fix format.
This commit is contained in:
Zach Lee
2023-08-17 15:42:40 +08:00
committed by GitHub
parent 9b08b34a2b
commit ed670e7b1b
13 changed files with 268 additions and 61 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ void SimpleTexture::createTexture(gfx::Device *device) {
}
auto textureCreateInfo = getGfxTextureCreateInfo(
gfx::TextureUsageBit::SAMPLED | gfx::TextureUsageBit::TRANSFER_DST,
gfx::TextureUsageBit::SAMPLED | gfx::TextureUsageBit::TRANSFER_DST | gfx::TextureUsageBit::COLOR_ATTACHMENT,
getGFXFormat(),
_mipmapLevel,
flags);