MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / MakeConstantUniformReplacement

Function MakeConstantUniformReplacement

source/fuzz/force_render_red.cpp:146–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146std::unique_ptr<TransformationReplaceConstantWithUniform>
147MakeConstantUniformReplacement(opt::IRContext* ir_context,
148 const FactManager& fact_manager,
149 uint32_t constant_id,
150 uint32_t greater_than_instruction,
151 uint32_t in_operand_index) {
152 return MakeUnique<TransformationReplaceConstantWithUniform>(
153 MakeIdUseDescriptor(
154 constant_id,
155 MakeInstructionDescriptor(greater_than_instruction,
156 spv::Op::OpFOrdGreaterThan, 0),
157 in_operand_index),
158 fact_manager.GetUniformDescriptorsForConstant(constant_id)[0],
159 ir_context->TakeNextId(), ir_context->TakeNextId());
160}
161
162} // namespace
163

Callers 1

ForceRenderRedFunction · 0.85

Calls 4

MakeIdUseDescriptorFunction · 0.85
TakeNextIdMethod · 0.45

Tested by

no test coverage detected