mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 11:09:56 -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:
@@ -871,6 +871,9 @@ VkPipeline vk_pipeline_compute(const GfxShader *cs, const VkPipeInfo **info);
|
||||
// write masks and references; vertex buffers with vkCmdBindVertexBuffers2 (strides NULL when
|
||||
// vk_pipeline_vertex_input_dynamic(), else from VkPipeState.vstream).
|
||||
void vk_pipeline_set_dynamic(VkCommandBuffer cb, const VkPipeState *s);
|
||||
// The line width for a draw of lines with the state s (width in pixels as the game set it; 0 = 1): recorded when s
|
||||
// draws lines and the device has wide lines, whose pipelines take the width as dynamic state. Nothing otherwise.
|
||||
void vk_pipeline_line_width(VkCommandBuffer cb, const VkPipeState *s, float width);
|
||||
// Vertex input as vkCmdSetVertexInputEXT takes it (vk_pipeline.c vertex_input).
|
||||
typedef struct {
|
||||
uint32_t n_attr, n_bind;
|
||||
|
||||
Reference in New Issue
Block a user