|
|
@@ -3963,7 +3963,7 @@ namespace bgfx { namespace d3d11
|
|
|
|
|
|
static void patchUAVRegisterByteCode(DxbcInstruction& _instruction, void* _userData)
|
|
|
{
|
|
|
- union { void* ptr; uint32_t offset; } cast = { _userData };
|
|
|
+ BX_UNUSED(_userData);
|
|
|
|
|
|
switch (_instruction.opcode)
|
|
|
{
|
|
|
@@ -3972,38 +3972,38 @@ namespace bgfx { namespace d3d11
|
|
|
DxbcOperand& operand = _instruction.operand[0];
|
|
|
operand.regIndex[0] += 16;
|
|
|
|
|
|
- BX_ASSERT(operand.regIndex[1] == 0 && operand.regIndex[2] == 0
|
|
|
- , "Unexpected values");
|
|
|
+ BX_ASSERT(operand.regIndex[1] == 0 && operand.regIndex[2] == 0, "Unexpected values");
|
|
|
}
|
|
|
break;
|
|
|
+
|
|
|
case DxbcOpcode::DCL_UNORDERED_ACCESS_VIEW_RAW:
|
|
|
- {
|
|
|
- BX_ASSERT(false, "Unsupported UAV access");
|
|
|
- }
|
|
|
+ BX_ASSERT(false, "Unsupported UAV access");
|
|
|
break;
|
|
|
+
|
|
|
case DxbcOpcode::DCL_UNORDERED_ACCESS_VIEW_STRUCTURED:
|
|
|
- {
|
|
|
- BX_ASSERT(false, "Unsupported UAV access");
|
|
|
- }
|
|
|
+ BX_ASSERT(false, "Unsupported UAV access");
|
|
|
break;
|
|
|
+
|
|
|
case DxbcOpcode::LD_UAV_TYPED:
|
|
|
{
|
|
|
DxbcOperand& operand = _instruction.operand[2];
|
|
|
operand.regIndex[0] += 16;
|
|
|
|
|
|
- BX_ASSERT(operand.regIndex[1] == 0 && operand.regIndex[2] == 0
|
|
|
- , "Unexpected values");
|
|
|
+ BX_ASSERT(operand.regIndex[1] == 0 && operand.regIndex[2] == 0, "Unexpected values");
|
|
|
}
|
|
|
break;
|
|
|
+
|
|
|
case DxbcOpcode::STORE_UAV_TYPED:
|
|
|
{
|
|
|
DxbcOperand& operand = _instruction.operand[0];
|
|
|
operand.regIndex[0] += 16;
|
|
|
|
|
|
- BX_ASSERT(operand.regIndex[1] == 0 && operand.regIndex[2] == 0
|
|
|
- , "Unexpected values");
|
|
|
+ BX_ASSERT(operand.regIndex[1] == 0 && operand.regIndex[2] == 0, "Unexpected values");
|
|
|
}
|
|
|
break;
|
|
|
+
|
|
|
+ default:
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
|