Skip to content

Commit dcb9f71

Browse files
committed
Add back helpful comments
1 parent df04fce commit dcb9f71

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

BCnEncTests.Shared/Bc7BlockTests.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,13 @@ public void DecodeErrorBlock()
9696
private void Type0Pack(Span<Bc7Block> output)
9797
{
9898
var subsetEndpoints = new[] {
99+
//subset 1
99100
new byte[]{0b1111, 0, 0},
100101
new byte[]{0b1000, 0, 0},
102+
// subset 2
101103
new byte[]{0, 0b1111, 0},
102104
new byte[]{0, 0b1000, 0},
105+
//subset 3
103106
new byte[]{0, 0, 0b1111},
104107
new byte[]{0, 0, 0b1000}
105108
};
@@ -163,8 +166,10 @@ private void Type0Pack(Span<Bc7Block> output)
163166
private void Type1Pack(Span<Bc7Block> output)
164167
{
165168
var subsetEndpoints = new[] {
169+
//subset 1
166170
new byte[]{0b111111, 0b0100, 0},
167171
new byte[]{0b0100, 0b111111, 0},
172+
// subset 2
168173
new byte[]{0, 0, 0b111111},
169174
new byte[]{0, 0, 0b1010}
170175
};
@@ -186,10 +191,13 @@ private void Type1Pack(Span<Bc7Block> output)
186191
private void Type2Pack(Span<Bc7Block> output)
187192
{
188193
var subsetEndpoints = new[] {
194+
//subset 1
189195
new byte[]{0b11111, 0, 0},
190196
new byte[]{0b01000, 0, 0},
197+
// subset 2
191198
new byte[]{0, 0b11111, 0},
192199
new byte[]{0, 0b01000, 0},
200+
//subset 3
193201
new byte[]{0, 0, 0b11111},
194202
new byte[]{0, 0, 0b01000}
195203
};
@@ -210,8 +218,10 @@ private void Type2Pack(Span<Bc7Block> output)
210218
private void Type3Pack(Span<Bc7Block> output)
211219
{
212220
var subsetEndpoints = new[] {
221+
//subset 1
213222
new byte[]{0b1111111, 0b10100, 0},
214223
new byte[]{0b10100, 0b1111111, 0},
224+
// subset 2
215225
new byte[]{0, 0, 0b1111111},
216226
new byte[]{0, 0, 0b11010}
217227
};
@@ -233,6 +243,7 @@ private void Type3Pack(Span<Bc7Block> output)
233243
private void Type4Pack(Span<Bc7Block> output)
234244
{
235245
var colorEndpoints = new[] {
246+
//subset 1
236247
new byte[]{0b11111, 0, 0b0100},
237248
new byte[]{0, 0b11111, 0b0100}
238249
};
@@ -265,6 +276,7 @@ private void Type4Pack(Span<Bc7Block> output)
265276
private void Type5Pack(Span<Bc7Block> output)
266277
{
267278
var colorEndpoints = new[] {
279+
//subset 1
268280
new byte[]{0b1111111, 0b0100, 0},
269281
new byte[]{0, 0, 0b1111111}
270282
};
@@ -294,6 +306,7 @@ private void Type5Pack(Span<Bc7Block> output)
294306
private void Type6Pack(Span<Bc7Block> output)
295307
{
296308
var colorEndpoints = new[] {
309+
//subset 1
297310
new byte[]{0b1111111, 0b0100, 0, 0b1111111},
298311
new byte[]{0, 0, 0b1111111, 0b1111}
299312
};
@@ -314,8 +327,10 @@ private void Type6Pack(Span<Bc7Block> output)
314327
private void Type7Pack(Span<Bc7Block> output)
315328
{
316329
var colorEndpoints = new[] {
330+
//subset 1
317331
new byte[]{0b11111, 0b0100, 0, 0b11111},
318332
new byte[]{0, 0b11111, 0, 0b111},
333+
//subset 2
319334
new byte[]{0b11111, 0b0100, 0, 0b1111},
320335
new byte[]{0b10100, 0, 0b11111, 0b11111}
321336
};

0 commit comments

Comments
 (0)