mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 22:19:57 -04:00
Draw lines as wide as the game sets them.
The game's line width was dropped at the call and every line drawn 1 pixel wide; the game draws two lines a frame at 4.5 pixels into a 144x144 mask. The width is now recorded with the draw state and set as dynamic state for draws of the line topology class, held to the device's range. Only pipelines of that class list the new dynamic state, so the others keep their entries in the pipeline caches and the driver's. line_width = 0 draws every line 1 pixel wide as before. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -142,7 +142,7 @@ typedef struct { int32_t mode; int32_t pad; uint64_t addr; } p_render_cond; //
|
||||
typedef struct { int32_t enable; uint32_t index; } p_prim_restart; // SetPrimitiveRestart: indexed strips restart at index
|
||||
typedef struct { float n, f; } p_depth_range;
|
||||
typedef struct { const prog_t *prog; int32_t stages; } p_bind_program;
|
||||
typedef struct { int32_t kind; uint8_t bytes[0x18]; } p_bind_state; // kind: 0 blend 1 color 2 chmask 3 ms 4 poly 5 ds 6 point size (float)
|
||||
typedef struct { int32_t kind; uint8_t bytes[0x18]; } p_bind_state; // kind: 0 blend 1 color 2 chmask 3 ms 4 poly 5 ds 6 point size (float) 7 line width (float)
|
||||
typedef struct { int32_t first, n; uint32_t st[16]; } p_bind_vattr;
|
||||
typedef struct { int32_t first, n; vs_st st[16]; } p_bind_vstream;
|
||||
typedef struct { int32_t first, n; NVNbufferRange r[16]; } p_bind_vbuf;
|
||||
|
||||
Reference in New Issue
Block a user