mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-26 00:57:49 +00:00
Actually advance the color values ptr
This commit is contained in:
parent
31e01b7b10
commit
2d52f1eabb
1 changed files with 3 additions and 3 deletions
|
@ -650,8 +650,7 @@ namespace ASTCC {
|
||||||
|
|
||||||
// Section C.2.14
|
// Section C.2.14
|
||||||
void ComputeEndpoints(FasTC::Pixel &ep1, FasTC::Pixel &ep2,
|
void ComputeEndpoints(FasTC::Pixel &ep1, FasTC::Pixel &ep2,
|
||||||
const uint32* colorValuesPtr, uint32 colorEndpointMode) {
|
const uint32* &colorValues, uint32 colorEndpointMode) {
|
||||||
const uint32 *colorValues = colorValuesPtr;
|
|
||||||
#define READ_UINT_VALUES(N) \
|
#define READ_UINT_VALUES(N) \
|
||||||
uint32 v[N]; \
|
uint32 v[N]; \
|
||||||
for(uint32 i = 0; i < N; i++) { \
|
for(uint32 i = 0; i < N; i++) { \
|
||||||
|
@ -943,9 +942,10 @@ namespace ASTCC {
|
||||||
weightParams.GetNumWeightValues());
|
weightParams.GetNumWeightValues());
|
||||||
|
|
||||||
FasTC::Pixel endpoints[4][2];
|
FasTC::Pixel endpoints[4][2];
|
||||||
|
const uint32 *colorValuesPtr = colorValues;
|
||||||
for(uint32 i = 0; i < nPartitions; i++) {
|
for(uint32 i = 0; i < nPartitions; i++) {
|
||||||
ComputeEndpoints(endpoints[i][0], endpoints[i][1],
|
ComputeEndpoints(endpoints[i][0], endpoints[i][1],
|
||||||
colorValues, colorEndpointMode[i]);
|
colorValuesPtr, colorEndpointMode[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Blocks can be at most 12x12, so we can have as many as 144 weights
|
// Blocks can be at most 12x12, so we can have as many as 144 weights
|
||||||
|
|
Loading…
Reference in a new issue