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 {
131131 float MaxLOD = std::numeric_limits<float >::max();
132132 uint32_t Space = 0 ;
133133 dxbc::ShaderVisibility Visibility = dxbc::ShaderVisibility::All;
134+ // Flags added in Root Signature 1.2
135+ dxbc::StaticSamplerFlags Flags = dxbc::StaticSamplerFlags::None;
134136};
135137
136138// / 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) {
212212 ConstantAsMetadata::get (Builder.getInt32 (Sampler.Space )),
213213 ConstantAsMetadata::get (
214214 Builder.getInt32 (to_underlying (Sampler.Visibility ))),
215- ConstantAsMetadata::get (Builder. getInt32 ( 0 ) ),
215+ ConstantAsMetadata::get (Sampler. Flags ),
216216 };
217217 return MDNode::get (Ctx, Operands);
218218}
You can’t perform that action at this time.
0 commit comments