File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
include/llvm/Frontend/HLSL Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,8 @@ struct StaticSampler {
131
131
float MaxLOD = std::numeric_limits<float >::max();
132
132
uint32_t Space = 0 ;
133
133
dxbc::ShaderVisibility Visibility = dxbc::ShaderVisibility::All;
134
+ // Flags added in Root Signature 1.2
135
+ dxbc::StaticSamplerFlags Flags = dxbc::StaticSamplerFlags::None;
134
136
};
135
137
136
138
// / Models RootElement : RootFlags | RootConstants | RootParam
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ MDNode *MetadataBuilder::BuildStaticSampler(const StaticSampler &Sampler) {
212
212
ConstantAsMetadata::get (Builder.getInt32 (Sampler.Space )),
213
213
ConstantAsMetadata::get (
214
214
Builder.getInt32 (to_underlying (Sampler.Visibility ))),
215
- ConstantAsMetadata::get (Builder. getInt32 ( 0 ) ),
215
+ ConstantAsMetadata::get (Sampler. Flags ),
216
216
};
217
217
return MDNode::get (Ctx, Operands);
218
218
}
You can’t perform that action at this time.
0 commit comments