mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-10 14:08:04 +00:00
Fix bug with EnsureTextureUsage
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user