VulkanRenderer: Fix scissor handling
This commit is contained in:
parent
1f15328fdd
commit
55784a7dfc
|
|
@ -126,9 +126,7 @@ namespace Nz
|
||||||
{
|
{
|
||||||
std::vector<VkDynamicState> dynamicStates;
|
std::vector<VkDynamicState> dynamicStates;
|
||||||
dynamicStates.push_back(VK_DYNAMIC_STATE_VIEWPORT);
|
dynamicStates.push_back(VK_DYNAMIC_STATE_VIEWPORT);
|
||||||
|
dynamicStates.push_back(VK_DYNAMIC_STATE_SCISSOR);
|
||||||
if (pipelineInfo.scissorTest)
|
|
||||||
dynamicStates.push_back(VK_DYNAMIC_STATE_SCISSOR);
|
|
||||||
|
|
||||||
return dynamicStates;
|
return dynamicStates;
|
||||||
}
|
}
|
||||||
|
|
@ -170,9 +168,7 @@ namespace Nz
|
||||||
VkPipelineViewportStateCreateInfo createInfo = {};
|
VkPipelineViewportStateCreateInfo createInfo = {};
|
||||||
createInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO;
|
createInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO;
|
||||||
createInfo.viewportCount = 1; //< TODO: Handle multiple viewport regions
|
createInfo.viewportCount = 1; //< TODO: Handle multiple viewport regions
|
||||||
|
createInfo.scissorCount = 1; //< TODO: Handle multiple scissor regions
|
||||||
if (pipelineInfo.scissorTest)
|
|
||||||
createInfo.scissorCount = 1; //< TODO: Handle multiple scissor regions
|
|
||||||
|
|
||||||
return createInfo;
|
return createInfo;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue