Skip to content

Commit b5e3ca5

Browse files
authored
Apply suggestions from code review
1 parent 79d754a commit b5e3ca5

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

source/slang/slang-emit-c-like.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -3810,7 +3810,8 @@ void CLikeSourceEmitter::emitBitfieldExtractImpl(IRInst* inst)
38103810
}
38113811

38123812
String one;
3813-
switch(bitWidth) {
3813+
switch(bitWidth)
3814+
{
38143815
case 8: one = "uint8_t(1)"; break;
38153816
case 16: one = "uint16_t(1)"; break;
38163817
case 32: one = "uint32_t(1)"; break;

source/slang/slang-emit-glsl.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -2449,7 +2449,8 @@ void GLSLSourceEmitter::emitFuncDecorationImpl(IRDecoration* decoration)
24492449
}
24502450
}
24512451

2452-
void GLSLSourceEmitter::emitBitfieldExtractImpl(IRInst* inst) {
2452+
void GLSLSourceEmitter::emitBitfieldExtractImpl(IRInst* inst)
2453+
{
24532454
m_writer->emit("bitfieldExtract(");
24542455
emitOperand(inst->getOperand(0), getInfo(EmitOp::General));
24552456
m_writer->emit(",");
@@ -2459,7 +2460,8 @@ void GLSLSourceEmitter::emitBitfieldExtractImpl(IRInst* inst) {
24592460
m_writer->emit(")");
24602461
}
24612462

2462-
void GLSLSourceEmitter::emitBitfieldInsertImpl(IRInst* inst) {
2463+
void GLSLSourceEmitter::emitBitfieldInsertImpl(IRInst* inst)
2464+
{
24632465
m_writer->emit("bitfieldInsert(");
24642466
emitOperand(inst->getOperand(0), getInfo(EmitOp::General));
24652467
m_writer->emit(",");

source/slang/slang-emit-spirv.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -5600,7 +5600,8 @@ struct SPIRVEmitContext
56005600
return emitInst(parent, inst, SpvOpConvertUToPtr, inst->getFullType(), kResultID, inst->getOperand(0));
56015601
}
56025602

5603-
SpvInst* emitBitfieldExtract(SpvInstParent* parent, IRInst* inst) {
5603+
SpvInst* emitBitfieldExtract(SpvInstParent* parent, IRInst* inst)
5604+
{
56045605
auto dataType = inst->getDataType();
56055606
IRVectorType* vectorType = as<IRVectorType>(dataType);
56065607
Slang::IRType* elementType = dataType;
@@ -5617,7 +5618,8 @@ struct SPIRVEmitContext
56175618
inst->getOperand(0), inst->getOperand(1), inst->getOperand(2));
56185619
}
56195620

5620-
SpvInst* emitBitfieldInsert(SpvInstParent* parent, IRInst* inst) {
5621+
SpvInst* emitBitfieldInsert(SpvInstParent* parent, IRInst* inst)
5622+
{
56215623
auto dataType = inst->getDataType();
56225624
IRVectorType* vectorType = as<IRVectorType>(dataType);
56235625
Slang::IRType* elementType = dataType;

0 commit comments

Comments
 (0)