mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
Query if Texture subresource has been initialized
Bug: chromium:1036080 Change-Id: Ieb4c7012ae2d7d7b863c999756930b0ce45c06cb Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/16422 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Natasha Lee <natlee@microsoft.com>
This commit is contained in:
committed by
Commit Bot service account
parent
56f1678437
commit
1d54767364
@@ -15,6 +15,7 @@
|
||||
#include "dawn_native/DawnNative.h"
|
||||
#include "dawn_native/Device.h"
|
||||
#include "dawn_native/Instance.h"
|
||||
#include "dawn_native/Texture.h"
|
||||
#include "dawn_platform/DawnPlatform.h"
|
||||
|
||||
// Contains the entry-points into dawn_native
|
||||
@@ -165,6 +166,17 @@ namespace dawn_native {
|
||||
return deviceBase->GetLazyClearCountForTesting();
|
||||
}
|
||||
|
||||
bool IsTextureSubresourceInitialized(WGPUTexture texture,
|
||||
uint32_t baseMipLevel,
|
||||
uint32_t levelCount,
|
||||
uint32_t baseArrayLayer,
|
||||
uint32_t layerCount) {
|
||||
dawn_native::TextureBase* textureBase =
|
||||
reinterpret_cast<dawn_native::TextureBase*>(texture);
|
||||
return textureBase->IsSubresourceContentInitialized(baseMipLevel, levelCount,
|
||||
baseArrayLayer, layerCount);
|
||||
}
|
||||
|
||||
std::vector<const char*> GetProcMapNamesForTestingInternal();
|
||||
|
||||
std::vector<const char*> GetProcMapNamesForTesting() {
|
||||
|
||||
Reference in New Issue
Block a user