Ensure constant byte offset is properly zero-initialised

This commit is contained in:
baldurk
2020-05-27 17:15:05 +01:00
parent d245c3b1ad
commit 2416d284b4
+2 -2
View File
@@ -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;