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:
Kai Ninomiya
2017-07-19 15:41:17 -07:00
committed by GitHub
parent 1e66ab93fe
commit 35bf424035
34 changed files with 645 additions and 11 deletions

View File

@@ -112,6 +112,9 @@ namespace backend {
if (frozen) {
return false;
}
if (currentUsage == nxt::TextureUsageBit::Present) {
return false;
}
return IsUsagePossible(allowedUsage, usage);
}