mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 15:49: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:
@@ -79,6 +79,7 @@ typedef struct VkExec {
|
||||
float depth_range[2]; // OP_DEPTH_RANGE: overrides the viewports' near and far
|
||||
uint32_t st_vmask[2], st_wmask[2], st_ref[2]; // OP_STENCIL per face (0 front, 1 back): compare mask, write mask, ref
|
||||
float point_size; // OP_BIND_STATE kind 6: NVN point size for the support buffer; 0 = never set = 1
|
||||
float line_width; // OP_BIND_STATE kind 7: NVN line width in pixels; 0 = never set = 1
|
||||
p_poly_offset poly_offset; // OP_POLY_OFFSET: depth bias factor, units, clamp
|
||||
p_prim_restart prim_restart; // OP_PRIM_RESTART: applied to indexed strip and fan draws (op_draw_idx)
|
||||
float blend_color[4]; // OP_BLEND_COLOR
|
||||
|
||||
Reference in New Issue
Block a user