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 --- tools/gfx/gfx.slang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/gfx/gfx.slang') diff --git a/tools/gfx/gfx.slang b/tools/gfx/gfx.slang index c1296b472..13359334f 100644 --- a/tools/gfx/gfx.slang +++ b/tools/gfx/gfx.slang @@ -486,7 +486,7 @@ struct TextureResourceDesc : ResourceDescBase GfxCount numMipLevels = 0; ///< Number of mip levels - if 0 will create all mip levels Format format; ///< The resources format TextureResourceSampleDesc sampleDesc; ///< How the resource is sampled - ClearValue optimalClearValue; + ClearValue* optimalClearValue; }; /// Data for a single subresource of a texture. -- cgit v1.2.3