vk/vulkan.h: Remove the explicit primitive restart index
Unfortunately, this requires some non-trivial changes to the driver. Now that the primitive restart index isn't given explicitly by the client, we always use ~0 for everything like D3D does. Unfortunately, our hardware is awesome and a 32-bit version of ~0 doesn't match any 16-bit values. This means, we have to set it to either UINT16_MAX or UINT32_MAX depending on the size of the index type. Since we get the index type from CmdBindIndexBuffer and the rest of the VF packet from the pipeline, we need to lazy-emit the VF packet.
This commit is contained in:
@@ -1452,7 +1452,6 @@ typedef struct {
|
||||
VkPrimitiveTopology topology;
|
||||
bool32_t disableVertexReuse;
|
||||
bool32_t primitiveRestartEnable;
|
||||
uint32_t primitiveRestartIndex;
|
||||
} VkPipelineIaStateCreateInfo;
|
||||
|
||||
typedef struct {
|
||||
|
Reference in New Issue
Block a user