testgpurender_effects: use the grayscale algorithm from BT.709

This commit is contained in:
Sam Lantinga
2025-09-26 10:27:10 -07:00
parent 1f73c19a73
commit 1d2a482dde
9 changed files with 555 additions and 554 deletions

View File

@@ -1,4 +1,4 @@
static const unsigned char testgpu_effects_grayscale_frag_spv[] = {
static const unsigned char testgpurender_effects_grayscale_frag_spv[] = {
0x03, 0x02, 0x23, 0x07, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0e, 0x00,
0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00,
0x01, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -36,9 +36,9 @@ static const unsigned char testgpu_effects_grayscale_frag_spv[] = {
0x08, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x16, 0x00, 0x03, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,
0x2b, 0x00, 0x04, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00,
0x87, 0x16, 0x99, 0x3e, 0x2b, 0x00, 0x04, 0x00, 0x0a, 0x00, 0x00, 0x00,
0x0c, 0x00, 0x00, 0x00, 0xa2, 0x45, 0x16, 0x3f, 0x2b, 0x00, 0x04, 0x00,
0x0a, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0xd5, 0x78, 0xe9, 0x3d,
0xd0, 0xb3, 0x59, 0x3e, 0x2b, 0x00, 0x04, 0x00, 0x0a, 0x00, 0x00, 0x00,
0x0c, 0x00, 0x00, 0x00, 0x59, 0x17, 0x37, 0x3f, 0x2b, 0x00, 0x04, 0x00,
0x0a, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0xfe, 0xd4, 0x38, 0x3f,
0x19, 0x00, 0x09, 0x00, 0x05, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -93,4 +93,4 @@ static const unsigned char testgpu_effects_grayscale_frag_spv[] = {
0x3e, 0x00, 0x03, 0x00, 0x04, 0x00, 0x00, 0x00, 0x27, 0x00, 0x00, 0x00,
0xfd, 0x00, 0x01, 0x00, 0x38, 0x00, 0x01, 0x00
};
static const unsigned int testgpu_effects_grayscale_frag_spv_len = 1112;
static const unsigned int testgpurender_effects_grayscale_frag_spv_len = 1112;