mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 23:56:16 +00:00
Swap chains, part 1 (#87)
Adds the swap chain interfaces to the API without changing the behavior of anything else. This includes the C APIs for applications to provide swap chain implementations. Also adds stub implementations on every backend.
This commit is contained in:
@@ -112,6 +112,9 @@ namespace backend {
|
||||
if (frozen) {
|
||||
return false;
|
||||
}
|
||||
if (currentUsage == nxt::TextureUsageBit::Present) {
|
||||
return false;
|
||||
}
|
||||
return IsUsagePossible(allowedUsage, usage);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user