{"action":"created","issue":{"url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/859","repository_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers","labels_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/859/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/859/comments","events_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/859/events","html_url":"https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/859","id":171938488,"number":859,"title":"Error message for VK_DYNAMIC_STATE_SCISSOR when isn't set","user":{"login":"dankbaker","id":3113043,"avatar_url":"https://avatars.githubusercontent.com/u/3113043?v=3","gravatar_id":"","url":"https://api.github.com/users/dankbaker","html_url":"https://github.com/dankbaker","followers_url":"https://api.github.com/users/dankbaker/followers","following_url":"https://api.github.com/users/dankbaker/following{/other_user}","gists_url":"https://api.github.com/users/dankbaker/gists{/gist_id}","starred_url":"https://api.github.com/users/dankbaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankbaker/subscriptions","organizations_url":"https://api.github.com/users/dankbaker/orgs","repos_url":"https://api.github.com/users/dankbaker/repos","events_url":"https://api.github.com/users/dankbaker/events{/privacy}","received_events_url":"https://api.github.com/users/dankbaker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tobine","id":7526739,"avatar_url":"https://avatars.githubusercontent.com/u/7526739?v=3","gravatar_id":"","url":"https://api.github.com/users/tobine","html_url":"https://github.com/tobine","followers_url":"https://api.github.com/users/tobine/followers","following_url":"https://api.github.com/users/tobine/following{/other_user}","gists_url":"https://api.github.com/users/tobine/gists{/gist_id}","starred_url":"https://api.github.com/users/tobine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobine/subscriptions","organizations_url":"https://api.github.com/users/tobine/orgs","repos_url":"https://api.github.com/users/tobine/repos","events_url":"https://api.github.com/users/tobine/events{/privacy}","received_events_url":"https://api.github.com/users/tobine/received_events","type":"User","site_admin":false},"assignees":[{"login":"tobine","id":7526739,"avatar_url":"https://avatars.githubusercontent.com/u/7526739?v=3","gravatar_id":"","url":"https://api.github.com/users/tobine","html_url":"https://github.com/tobine","followers_url":"https://api.github.com/users/tobine/followers","following_url":"https://api.github.com/users/tobine/following{/other_user}","gists_url":"https://api.github.com/users/tobine/gists{/gist_id}","starred_url":"https://api.github.com/users/tobine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobine/subscriptions","organizations_url":"https://api.github.com/users/tobine/orgs","repos_url":"https://api.github.com/users/tobine/repos","events_url":"https://api.github.com/users/tobine/events{/privacy}","received_events_url":"https://api.github.com/users/tobine/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-08-18T16:03:28Z","updated_at":"2016-08-18T16:56:13Z","closed_at":null,"body":"I'm getting this message even though I _didn't_ set state VK_DYNAMIC_STATE_SCISSOR.\r\n\r\n```\r\nParameterValidation (ERROR): object: 0x0 type: 0 location: 2868 msgCode: 4: vkCreateGraphicsPipelines: if pCreateInfos[0].pDynamicState->pDynamicStates contains VK_DYNAMIC_STATE_SCISSOR, pCreateInfos[0].pViewportState->scissorCount must be greater than 0\r\nParameterValidation (ERROR): object: 0x0 type: 0 location: 2880 msgCode: 4: vkCreateGraphicsPipelines: if pCreateInfos[0].pDynamicState->pDynamicStates contains VK_DYNAMIC_STATE_SCISSOR, pCreateInfos[0].pViewportState->pScissors must not be NULL\r\n```\r\n\r\nThis is the code I used \r\n```     \r\n    VkDynamicState DynamicStateEnables[VK_DYNAMIC_STATE_RANGE_SIZE];\r\n    DynamicStateEnables[0] = VK_DYNAMIC_STATE_VIEWPORT;\r\n    VkPipelineDynamicStateCreateInfo dynamicState;\r\n    memset(&dynamicState, 0, sizeof dynamicState);\r\n    dynamicState.sType = VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO;\r\n    dynamicState.pDynamicStates = DynamicStateEnables;\r\n    dynamicState.dynamicStateCount = 1;\r\n```\r\n\r\nand validated in debugger that enum isn't in the pipeline create structure during shader creation."},"comment":{"url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/comments/240786907","html_url":"https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/859#issuecomment-240786907","issue_url":"https://api.github.com/repos/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/859","id":240786907,"user":{"login":"tobine","id":7526739,"avatar_url":"https://avatars.githubusercontent.com/u/7526739?v=3","gravatar_id":"","url":"https://api.github.com/users/tobine","html_url":"https://github.com/tobine","followers_url":"https://api.github.com/users/tobine/followers","following_url":"https://api.github.com/users/tobine/following{/other_user}","gists_url":"https://api.github.com/users/tobine/gists{/gist_id}","starred_url":"https://api.github.com/users/tobine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobine/subscriptions","organizations_url":"https://api.github.com/users/tobine/orgs","repos_url":"https://api.github.com/users/tobine/repos","events_url":"https://api.github.com/users/tobine/events{/privacy}","received_events_url":"https://api.github.com/users/tobine/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T16:56:13Z","updated_at":"2016-08-18T16:56:13Z","body":"The error message is incorrectly worded, but the errors are correct. The first part of the error statement is backwards and should actually state:\r\n\r\n`if pCreateInfos[0].pDynamicState->pDynamicStates does not contains VK_DYNAMIC_STATE_SCISSOR`\r\n\r\nSee spec section \"9.2 Graphics Pipelines\" valid usage for VkGraphicsPipelineCreateInfo struct:\r\n\r\n`If no element of the pDynamicStates member of pDynamicState is VK_DYNAMIC_STATE_SCISSOR, the pScissors member of pViewportState must be a pointer to an array of pViewportState→scissorCount VkRect2D structures`\r\n\r\nI will update the error messages."}}
{"actor":{"display_login":"tobine"}}