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;
16
16
17
17
namespace mcdxbc {
18
18
struct RootSignatureDesc {
19
+
19
20
dxbc::RootSignatureHeader Header;
20
21
SmallVector<dxbc::RootParameter> Parameters;
22
+ RootSignatureDesc () { Header = dxbc::RootSignatureHeader{2 , 0 }; }
21
23
22
24
void write (raw_ostream &OS) const ;
23
25
};
Original file line number Diff line number Diff line change @@ -119,12 +119,12 @@ namespace DirectX {
119
119
120
120
class RootSignature {
121
121
private:
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 ;
128
128
129
129
SmallVector<dxbc::RootParameter> Parameters;
130
130
You can’t perform that action at this time.
0 commit comments