mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-06 14:43:31 +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) {
|
bool CommandBufferStateTracker::EnsureTextureUsage(TextureBase* texture, nxt::TextureUsageBit usage) {
|
||||||
if (texture->HasFrozenUsage(nxt::TextureUsageBit::OutputAttachment)) {
|
if (texture->HasFrozenUsage(usage)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (!IsInternalTextureTransitionPossible(texture, usage)) {
|
if (!IsInternalTextureTransitionPossible(texture, usage)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user