Use valid values for default states. Closes #2396

* If we're replaying state set before a pipeline is bound we don't know which
  values are dynamic so conservatively we set them all. This means the state can
  be anything by default as long as it's legal - if it doesn't come from a
  previous dynamic state set its value is irrelevant.
This commit is contained in:
baldurk
2021-10-26 13:11:50 +01:00
parent 2cb612f451
commit e26c300566
+2 -2
View File
@@ -196,8 +196,8 @@ struct VulkanRenderState
// extended dynamic state 2
VkBool32 depthBiasEnable = VK_FALSE;
VkLogicOp logicOp = VK_LOGIC_OP_MAX_ENUM;
uint32_t patchControlPoints = 0;
VkLogicOp logicOp = VK_LOGIC_OP_CLEAR;
uint32_t patchControlPoints = 3;
VkBool32 primRestartEnable = VK_FALSE;
VkBool32 rastDiscardEnable = VK_FALSE;