mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 00:47:13 +00:00
Clear Vulkan Textures at first usage
This prevents dirty textures to be used when memory is recycled while destroying/creating textures. If a texture is not cleared at load, it will be cleared to 0 before it is used. Bug: dawn:145 Change-Id: Ia3f02427478fb48649089829186ccb377caa1912 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/6960 Commit-Queue: Natasha Lee <natlee@microsoft.com> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
031fbbbaa1
commit
28232ce9f5
@@ -51,4 +51,11 @@ static constexpr uint32_t kVendorID_Intel = 0x8086;
|
||||
static constexpr uint32_t kVendorID_Nvidia = 0x10DE;
|
||||
static constexpr uint32_t kVendorID_Qualcomm = 0x5143;
|
||||
|
||||
// Max texture size constants
|
||||
static constexpr uint32_t kMaxTextureSize = 8192u;
|
||||
static constexpr uint32_t kMaxTexture2DArrayLayers = 256u;
|
||||
static constexpr uint32_t kMaxTexture2DMipLevels = 14u;
|
||||
static_assert(1 << (kMaxTexture2DMipLevels - 1) == kMaxTextureSize,
|
||||
"kMaxTexture2DMipLevels and kMaxTextureSize size mismatch");
|
||||
|
||||
#endif // COMMON_CONSTANTS_H_
|
||||
|
||||
Reference in New Issue
Block a user