File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,10 @@ class raw_ostream;
1616
1717namespace mcdxbc {
1818struct RootSignatureDesc {
19+
1920 dxbc::RootSignatureHeader Header;
2021 SmallVector<dxbc::RootParameter> Parameters;
22+ RootSignatureDesc () { Header = dxbc::RootSignatureHeader{2 , 0 }; }
2123
2224 void write (raw_ostream &OS) const ;
2325};
Original file line number Diff line number Diff line change @@ -119,12 +119,12 @@ namespace DirectX {
119119
120120class RootSignature {
121121private:
122- uint32_t Version;
123- uint32_t NumParameters;
124- uint32_t RootParametersOffset;
125- uint32_t NumStaticSamplers;
126- uint32_t StaticSamplersOffset;
127- uint32_t Flags;
122+ uint32_t Version = 2 ;
123+ uint32_t NumParameters = 0 ;
124+ uint32_t RootParametersOffset = 0 ;
125+ uint32_t NumStaticSamplers = 0 ;
126+ uint32_t StaticSamplersOffset = 0 ;
127+ uint32_t Flags = 0 ;
128128
129129 SmallVector<dxbc::RootParameter> Parameters;
130130
You can’t perform that action at this time.
0 commit comments