From 09054f7ae00aad0458de465a7f0b780a91c694dd Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 13 Oct 2022 14:07:26 -0700 Subject: Make `optimalClearValue` optional in `ITextureResource::Desc` (#2450) Co-authored-by: Yong He --- slang-gfx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slang-gfx.h') diff --git a/slang-gfx.h b/slang-gfx.h index 2acb8bf1a..3e30a6a32 100644 --- a/slang-gfx.h +++ b/slang-gfx.h @@ -706,7 +706,7 @@ public: GfxCount numMipLevels = 0; ///< Number of mip levels - if 0 will create all mip levels Format format; ///< The resources format SampleDesc sampleDesc; ///< How the resource is sampled - ClearValue optimalClearValue; + ClearValue* optimalClearValue = nullptr; }; /// Data for a single subresource of a texture. -- cgit v1.2.3