mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 06:03:34 +00:00
Fix bug with EnsureTextureUsage
This commit is contained in:
parent
d9568e2ca9
commit
dd37e5017f
@ -388,7 +388,7 @@ namespace backend {
|
||||
}
|
||||
|
||||
bool CommandBufferStateTracker::EnsureTextureUsage(TextureBase* texture, nxt::TextureUsageBit usage) {
|
||||
if (texture->HasFrozenUsage(nxt::TextureUsageBit::OutputAttachment)) {
|
||||
if (texture->HasFrozenUsage(usage)) {
|
||||
return true;
|
||||
}
|
||||
if (!IsInternalTextureTransitionPossible(texture, usage)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user