mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2025-12-27 09:46:55 +01:00
Replace "auto const" with "auto"
This commit is contained in:
parent
f581df0935
commit
6a2d1da742
7 changed files with 23 additions and 23 deletions
|
|
@ -19,13 +19,13 @@ Ref Module::ConstantFalse(Ref result_type) {
|
|||
}
|
||||
|
||||
Ref Module::Constant(Ref result_type, Operand* literal) {
|
||||
auto const op{new Op(spv::Op::OpConstant, bound, result_type)};
|
||||
auto op{new Op(spv::Op::OpConstant, bound, result_type)};
|
||||
op->Add(literal);
|
||||
return AddDeclaration(op);
|
||||
}
|
||||
|
||||
Ref Module::ConstantComposite(Ref result_type, const std::vector<Ref>& constituents) {
|
||||
auto const op{new Op(spv::Op::OpConstantComposite, bound, result_type)};
|
||||
auto op{new Op(spv::Op::OpConstantComposite, bound, result_type)};
|
||||
op->Add(constituents);
|
||||
return AddDeclaration(op);
|
||||
}
|
||||
|
|
@ -34,7 +34,7 @@ Ref Module::ConstantSampler(Ref result_type, spv::SamplerAddressingMode addressi
|
|||
bool normalized, spv::SamplerFilterMode filter_mode) {
|
||||
AddCapability(spv::Capability::LiteralSampler);
|
||||
AddCapability(spv::Capability::Kernel);
|
||||
auto const op{new Op(spv::Op::OpConstantSampler, bound, result_type)};
|
||||
auto op{new Op(spv::Op::OpConstantSampler, bound, result_type)};
|
||||
AddEnum(op, addressing_mode);
|
||||
op->Add(normalized ? 1 : 0);
|
||||
AddEnum(op, filter_mode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue