@@ -687,9 +687,15 @@ bool WrappedID3D11DeviceContext::Serialise_VSSetConstantBuffers1(
687
687
if (pFirstConstant)
688
688
m_CurrentPipelineState->Change (m_CurrentPipelineState->VS .CBOffsets , pFirstConstant,
689
689
StartSlot, NumBuffers);
690
+ else
691
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->VS .CBOffsets , NullCBOffsets, StartSlot,
692
+ NumBuffers);
690
693
if (pNumConstants)
691
694
m_CurrentPipelineState->Change (m_CurrentPipelineState->VS .CBCounts , pNumConstants, StartSlot,
692
695
NumBuffers);
696
+ else
697
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->VS .CBCounts , NullCBCounts, StartSlot,
698
+ NumBuffers);
693
699
694
700
ID3D11Buffer *bufs[D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT] = {};
695
701
for (UINT i = 0 ; ppConstantBuffers && i < NumBuffers; i++)
@@ -779,6 +785,11 @@ void WrappedID3D11DeviceContext::VSSetConstantBuffers1(UINT StartSlot, UINT NumB
779
785
}
780
786
m_CurrentPipelineState->Change (m_CurrentPipelineState->VS .CBOffsets , offs, StartSlot, NumBuffers);
781
787
}
788
+ else
789
+ {
790
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->VS .CBOffsets , NullCBOffsets, StartSlot,
791
+ NumBuffers);
792
+ }
782
793
783
794
if (pNumConstants)
784
795
{
@@ -790,6 +801,11 @@ void WrappedID3D11DeviceContext::VSSetConstantBuffers1(UINT StartSlot, UINT NumB
790
801
}
791
802
m_CurrentPipelineState->Change (m_CurrentPipelineState->VS .CBCounts , cnts, StartSlot, NumBuffers);
792
803
}
804
+ else
805
+ {
806
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->VS .CBCounts , NullCBCounts, StartSlot,
807
+ NumBuffers);
808
+ }
793
809
794
810
VerifyState ();
795
811
}
@@ -818,9 +834,15 @@ bool WrappedID3D11DeviceContext::Serialise_HSSetConstantBuffers1(
818
834
if (pFirstConstant)
819
835
m_CurrentPipelineState->Change (m_CurrentPipelineState->HS .CBOffsets , pFirstConstant,
820
836
StartSlot, NumBuffers);
837
+ else
838
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->HS .CBOffsets , NullCBOffsets, StartSlot,
839
+ NumBuffers);
821
840
if (pNumConstants)
822
841
m_CurrentPipelineState->Change (m_CurrentPipelineState->HS .CBCounts , pNumConstants, StartSlot,
823
842
NumBuffers);
843
+ else
844
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->HS .CBCounts , NullCBCounts, StartSlot,
845
+ NumBuffers);
824
846
825
847
ID3D11Buffer *bufs[D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT] = {};
826
848
for (UINT i = 0 ; ppConstantBuffers && i < NumBuffers; i++)
@@ -910,6 +932,11 @@ void WrappedID3D11DeviceContext::HSSetConstantBuffers1(UINT StartSlot, UINT NumB
910
932
}
911
933
m_CurrentPipelineState->Change (m_CurrentPipelineState->HS .CBOffsets , offs, StartSlot, NumBuffers);
912
934
}
935
+ else
936
+ {
937
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->HS .CBOffsets , NullCBOffsets, StartSlot,
938
+ NumBuffers);
939
+ }
913
940
914
941
if (pNumConstants)
915
942
{
@@ -921,6 +948,11 @@ void WrappedID3D11DeviceContext::HSSetConstantBuffers1(UINT StartSlot, UINT NumB
921
948
}
922
949
m_CurrentPipelineState->Change (m_CurrentPipelineState->HS .CBCounts , cnts, StartSlot, NumBuffers);
923
950
}
951
+ else
952
+ {
953
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->HS .CBCounts , NullCBCounts, StartSlot,
954
+ NumBuffers);
955
+ }
924
956
925
957
VerifyState ();
926
958
}
@@ -949,9 +981,15 @@ bool WrappedID3D11DeviceContext::Serialise_DSSetConstantBuffers1(
949
981
if (pFirstConstant)
950
982
m_CurrentPipelineState->Change (m_CurrentPipelineState->DS .CBOffsets , pFirstConstant,
951
983
StartSlot, NumBuffers);
984
+ else
985
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->DS .CBOffsets , NullCBOffsets, StartSlot,
986
+ NumBuffers);
952
987
if (pNumConstants)
953
988
m_CurrentPipelineState->Change (m_CurrentPipelineState->DS .CBCounts , pNumConstants, StartSlot,
954
989
NumBuffers);
990
+ else
991
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->DS .CBCounts , NullCBCounts, StartSlot,
992
+ NumBuffers);
955
993
956
994
ID3D11Buffer *bufs[D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT] = {};
957
995
for (UINT i = 0 ; ppConstantBuffers && i < NumBuffers; i++)
@@ -1041,6 +1079,11 @@ void WrappedID3D11DeviceContext::DSSetConstantBuffers1(UINT StartSlot, UINT NumB
1041
1079
}
1042
1080
m_CurrentPipelineState->Change (m_CurrentPipelineState->DS .CBOffsets , offs, StartSlot, NumBuffers);
1043
1081
}
1082
+ else
1083
+ {
1084
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->DS .CBOffsets , NullCBOffsets, StartSlot,
1085
+ NumBuffers);
1086
+ }
1044
1087
1045
1088
if (pNumConstants)
1046
1089
{
@@ -1052,6 +1095,11 @@ void WrappedID3D11DeviceContext::DSSetConstantBuffers1(UINT StartSlot, UINT NumB
1052
1095
}
1053
1096
m_CurrentPipelineState->Change (m_CurrentPipelineState->DS .CBCounts , cnts, StartSlot, NumBuffers);
1054
1097
}
1098
+ else
1099
+ {
1100
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->DS .CBCounts , NullCBCounts, StartSlot,
1101
+ NumBuffers);
1102
+ }
1055
1103
1056
1104
VerifyState ();
1057
1105
}
@@ -1080,9 +1128,15 @@ bool WrappedID3D11DeviceContext::Serialise_GSSetConstantBuffers1(
1080
1128
if (pFirstConstant)
1081
1129
m_CurrentPipelineState->Change (m_CurrentPipelineState->GS .CBOffsets , pFirstConstant,
1082
1130
StartSlot, NumBuffers);
1131
+ else
1132
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->GS .CBOffsets , NullCBOffsets, StartSlot,
1133
+ NumBuffers);
1083
1134
if (pNumConstants)
1084
1135
m_CurrentPipelineState->Change (m_CurrentPipelineState->GS .CBCounts , pNumConstants, StartSlot,
1085
1136
NumBuffers);
1137
+ else
1138
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->GS .CBCounts , NullCBCounts, StartSlot,
1139
+ NumBuffers);
1086
1140
1087
1141
ID3D11Buffer *bufs[D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT] = {};
1088
1142
for (UINT i = 0 ; ppConstantBuffers && i < NumBuffers; i++)
@@ -1172,6 +1226,11 @@ void WrappedID3D11DeviceContext::GSSetConstantBuffers1(UINT StartSlot, UINT NumB
1172
1226
}
1173
1227
m_CurrentPipelineState->Change (m_CurrentPipelineState->GS .CBOffsets , offs, StartSlot, NumBuffers);
1174
1228
}
1229
+ else
1230
+ {
1231
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->GS .CBOffsets , NullCBOffsets, StartSlot,
1232
+ NumBuffers);
1233
+ }
1175
1234
1176
1235
if (pNumConstants)
1177
1236
{
@@ -1183,6 +1242,11 @@ void WrappedID3D11DeviceContext::GSSetConstantBuffers1(UINT StartSlot, UINT NumB
1183
1242
}
1184
1243
m_CurrentPipelineState->Change (m_CurrentPipelineState->GS .CBCounts , cnts, StartSlot, NumBuffers);
1185
1244
}
1245
+ else
1246
+ {
1247
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->GS .CBCounts , NullCBCounts, StartSlot,
1248
+ NumBuffers);
1249
+ }
1186
1250
1187
1251
VerifyState ();
1188
1252
}
@@ -1211,9 +1275,15 @@ bool WrappedID3D11DeviceContext::Serialise_PSSetConstantBuffers1(
1211
1275
if (pFirstConstant)
1212
1276
m_CurrentPipelineState->Change (m_CurrentPipelineState->PS .CBOffsets , pFirstConstant,
1213
1277
StartSlot, NumBuffers);
1278
+ else
1279
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->PS .CBOffsets , NullCBOffsets, StartSlot,
1280
+ NumBuffers);
1214
1281
if (pNumConstants)
1215
1282
m_CurrentPipelineState->Change (m_CurrentPipelineState->PS .CBCounts , pNumConstants, StartSlot,
1216
1283
NumBuffers);
1284
+ else
1285
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->PS .CBCounts , NullCBCounts, StartSlot,
1286
+ NumBuffers);
1217
1287
1218
1288
ID3D11Buffer *bufs[D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT] = {};
1219
1289
for (UINT i = 0 ; ppConstantBuffers && i < NumBuffers; i++)
@@ -1303,6 +1373,11 @@ void WrappedID3D11DeviceContext::PSSetConstantBuffers1(UINT StartSlot, UINT NumB
1303
1373
}
1304
1374
m_CurrentPipelineState->Change (m_CurrentPipelineState->PS .CBOffsets , offs, StartSlot, NumBuffers);
1305
1375
}
1376
+ else
1377
+ {
1378
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->PS .CBOffsets , NullCBOffsets, StartSlot,
1379
+ NumBuffers);
1380
+ }
1306
1381
1307
1382
if (pNumConstants)
1308
1383
{
@@ -1314,6 +1389,11 @@ void WrappedID3D11DeviceContext::PSSetConstantBuffers1(UINT StartSlot, UINT NumB
1314
1389
}
1315
1390
m_CurrentPipelineState->Change (m_CurrentPipelineState->PS .CBCounts , cnts, StartSlot, NumBuffers);
1316
1391
}
1392
+ else
1393
+ {
1394
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->PS .CBCounts , NullCBCounts, StartSlot,
1395
+ NumBuffers);
1396
+ }
1317
1397
1318
1398
VerifyState ();
1319
1399
}
@@ -1342,9 +1422,15 @@ bool WrappedID3D11DeviceContext::Serialise_CSSetConstantBuffers1(
1342
1422
if (pFirstConstant)
1343
1423
m_CurrentPipelineState->Change (m_CurrentPipelineState->CS .CBOffsets , pFirstConstant,
1344
1424
StartSlot, NumBuffers);
1425
+ else
1426
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->CS .CBOffsets , NullCBOffsets, StartSlot,
1427
+ NumBuffers);
1345
1428
if (pNumConstants)
1346
1429
m_CurrentPipelineState->Change (m_CurrentPipelineState->CS .CBCounts , pNumConstants, StartSlot,
1347
1430
NumBuffers);
1431
+ else
1432
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->CS .CBCounts , NullCBCounts, StartSlot,
1433
+ NumBuffers);
1348
1434
1349
1435
ID3D11Buffer *bufs[D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT] = {};
1350
1436
for (UINT i = 0 ; ppConstantBuffers && i < NumBuffers; i++)
@@ -1434,6 +1520,11 @@ void WrappedID3D11DeviceContext::CSSetConstantBuffers1(UINT StartSlot, UINT NumB
1434
1520
}
1435
1521
m_CurrentPipelineState->Change (m_CurrentPipelineState->CS .CBOffsets , offs, StartSlot, NumBuffers);
1436
1522
}
1523
+ else
1524
+ {
1525
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->CS .CBOffsets , NullCBOffsets, StartSlot,
1526
+ NumBuffers);
1527
+ }
1437
1528
1438
1529
if (pNumConstants)
1439
1530
{
@@ -1445,6 +1536,11 @@ void WrappedID3D11DeviceContext::CSSetConstantBuffers1(UINT StartSlot, UINT NumB
1445
1536
}
1446
1537
m_CurrentPipelineState->Change (m_CurrentPipelineState->CS .CBCounts , cnts, StartSlot, NumBuffers);
1447
1538
}
1539
+ else
1540
+ {
1541
+ m_CurrentPipelineState->Change (m_CurrentPipelineState->CS .CBCounts , NullCBCounts, StartSlot,
1542
+ NumBuffers);
1543
+ }
1448
1544
1449
1545
VerifyState ();
1450
1546
}
0 commit comments