summaryrefslogtreecommitdiff
path: root/tools/gfx/gfx.slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-10-13 14:07:26 -0700
committerGitHub <noreply@github.com>2022-10-13 14:07:26 -0700
commit09054f7ae00aad0458de465a7f0b780a91c694dd (patch)
tree776f50b5ebe51ae7088d6990eaa5f6d84d8a6c2a /tools/gfx/gfx.slang
parentafa9f4b2786c92e72a563f316e074f62770630cb (diff)
Make `optimalClearValue` optional in `ITextureResource::Desc` (#2450)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/gfx.slang')
-rw-r--r--tools/gfx/gfx.slang2
1 files changed, 1 insertions, 1 deletions
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.