diff options
| author | Tony-LunarG <tony@lunarg.com> | 2020-05-07 10:02:58 -0600 |
|---|---|---|
| committer | Tony Barbour <tony@lunarg.com> | 2020-05-07 11:47:09 -0600 |
| commit | 8ee48dc62f7c0fc7b4dab7befc2f601b1873d620 (patch) | |
| tree | 3cdaed101e8d10703dcdf113e33b5e6b689cc578 /cube/cube.c | |
| parent | 17019fa2360451fb4678a6c91651eb55046aec97 (diff) | |
| download | usermoji-8ee48dc62f7c0fc7b4dab7befc2f601b1873d620.tar.xz | |
cube: Remove dependency on VK_DYNAMIC_STATE_RANGE_SIZE
Change-Id: Id6b3906d2605c4742ad0af45747fc37c23cab03e
Diffstat (limited to 'cube/cube.c')
| -rw-r--r-- | cube/cube.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cube/cube.c b/cube/cube.c index 602b4bdc..8c87b5c8 100644 --- a/cube/cube.c +++ b/cube/cube.c @@ -1974,6 +1974,8 @@ static void demo_prepare_fs(struct demo *demo) { } static void demo_prepare_pipeline(struct demo *demo) { +#define NUM_DYNAMIC_STATES 2 /*Viewport + Scissor*/ + VkGraphicsPipelineCreateInfo pipeline; VkPipelineCacheCreateInfo pipelineCache; VkPipelineVertexInputStateCreateInfo vi; @@ -1983,7 +1985,7 @@ static void demo_prepare_pipeline(struct demo *demo) { VkPipelineDepthStencilStateCreateInfo ds; VkPipelineViewportStateCreateInfo vp; VkPipelineMultisampleStateCreateInfo ms; - VkDynamicState dynamicStateEnables[VK_DYNAMIC_STATE_RANGE_SIZE]; + VkDynamicState dynamicStateEnables[NUM_DYNAMIC_STATES]; VkPipelineDynamicStateCreateInfo dynamicState; VkResult U_ASSERT_ONLY err; |
