Skip to content

Commit

Permalink
shaderObject: Fix default patch control points
Browse files Browse the repository at this point in the history
  • Loading branch information
ziga-lunarg committed Mar 24, 2024
1 parent 1fa0d1b commit d396126
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layers/shader_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,7 @@ struct FullDrawStateData {
state->SetDepthWriteEnable(VK_TRUE);
state->SetDepthBoundsTestEnable(VK_TRUE);
state->SetStencilTestEnable(VK_TRUE);
state->SetPatchControlPoints(1);
}

static FullDrawStateData* Create(VkPhysicalDeviceProperties const& properties, VkAllocationCallbacks const& allocator) {
Expand Down Expand Up @@ -2324,6 +2325,7 @@ PartialPipeline CreatePartiallyCompiledPipeline(DeviceData const& deviceData, Vk
partial_pipeline.draw_state->SetDepthBiasEnable(rasterization_state.depthBiasEnable);

create_info.pTessellationState = &tessellation_state;
tessellation_state.patchControlPoints = 1u;
partial_pipeline.draw_state->SetPatchControlPoints(tessellation_state.patchControlPoints);
}

Expand Down

0 comments on commit d396126

Please sign in to comment.