Reduce the size of the D3D12 vertex shader constants

This is needed to add more fragment shader constants in the future as we're already at our 64 size limit
This commit is contained in:
Sam Lantinga
2025-09-27 19:18:46 -07:00
parent 5622eef5a8
commit 524ba0a4ad
12 changed files with 698 additions and 897 deletions

View File

@@ -4,8 +4,8 @@
;
; Name Index Mask Register SysValue Format Used
; -------------------- ----- ------ -------- -------- ------- ------
; SV_Position 0 xyzw 0 POS float
; TEXCOORD 0 xy 1 NONE float xy
; SV_Position 0 xyzw 0 POS float
; TEXCOORD 0 xy 1 NONE float xy
; COLOR 0 xyzw 2 NONE float xyzw
;
;
@@ -17,7 +17,7 @@
;
; shader hash: 659264befb13335624a11d2c002170a6
;
; Pipeline Runtime Information:
; Pipeline Runtime Information:
;
; Pixel Shader
; DepthOutput=0
@@ -28,15 +28,15 @@
;
; Name Index InterpMode DynIdx
; -------------------- ----- ---------------------- ------
; SV_Position 0 noperspective
; TEXCOORD 0 linear
; COLOR 0 linear
; SV_Position 0 noperspective
; TEXCOORD 0 linear
; COLOR 0 linear
;
; Output signature:
;
; Name Index InterpMode DynIdx
; -------------------- ----- ---------------------- ------
; SV_Target 0
; SV_Target 0
;
; Buffer Definitions:
;
@@ -59,7 +59,7 @@
; float4 Rcoeff; ; Offset: 64
; float4 Gcoeff; ; Offset: 80
; float4 Bcoeff; ; Offset: 96
;
;
; } Constants; ; Offset: 0 Size: 112
;
; }
@@ -181,8 +181,8 @@ attributes #2 = { nounwind readonly }
#endif
const unsigned char g_main[] = {
0x44, 0x58, 0x42, 0x43, 0x7b, 0xf8, 0x17, 0xd8, 0xe4, 0xbc, 0xb5, 0x92,
0xe1, 0x9d, 0x9b, 0xd1, 0x6e, 0x3f, 0xa1, 0x48, 0x01, 0x00, 0x00, 0x00,
0x44, 0x58, 0x42, 0x43, 0xb3, 0x69, 0x88, 0xa8, 0x1b, 0xbd, 0xf8, 0x6c,
0x94, 0xe3, 0xf8, 0x24, 0xa1, 0xa0, 0x04, 0x23, 0x01, 0x00, 0x00, 0x00,
0xf4, 0x12, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00,
0x50, 0x00, 0x00, 0x00, 0xdc, 0x00, 0x00, 0x00, 0x18, 0x01, 0x00, 0x00,
0x34, 0x02, 0x00, 0x00, 0xdc, 0x02, 0x00, 0x00, 0x48, 0x0b, 0x00, 0x00,
@@ -235,7 +235,7 @@ const unsigned char g_main[] = {
0x00, 0x00, 0x00, 0x00, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x05, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x05, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
0x68, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,