From 2416d284b4bb27ea7ce1943fb875c2cd302f26f8 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 27 May 2020 17:15:05 +0100 Subject: [PATCH] Ensure constant byte offset is properly zero-initialised --- renderdoc/api/replay/shader_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/api/replay/shader_types.h b/renderdoc/api/replay/shader_types.h index 760907dff..27844bdd7 100644 --- a/renderdoc/api/replay/shader_types.h +++ b/renderdoc/api/replay/shader_types.h @@ -995,9 +995,9 @@ struct ShaderConstant DOCUMENT("The name of this constant"); rdcstr name; DOCUMENT("The byte offset of this constant relative to the parent structure"); - uint32_t byteOffset; + uint32_t byteOffset = 0; DOCUMENT("If this constant is no larger than a 64-bit constant, gives a default value for it."); - uint64_t defaultValue; + uint64_t defaultValue = 0; DOCUMENT( "A :class:`ShaderVariableType` giving details of the type information for this constant."); ShaderVariableType type;