mirror of https://git.suyu.dev/suyu/suyu
Vulkan: implement Logical Operations.
This commit is contained in:
parent
6430fc29a9
commit
14d2c77f91
|
@ -748,8 +748,8 @@ void GraphicsPipeline::MakePipeline(VkRenderPass render_pass) {
|
||||||
.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO,
|
.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO,
|
||||||
.pNext = nullptr,
|
.pNext = nullptr,
|
||||||
.flags = 0,
|
.flags = 0,
|
||||||
.logicOpEnable = VK_FALSE,
|
.logicOpEnable = key.state.logic_op_enable != 0,
|
||||||
.logicOp = VK_LOGIC_OP_COPY,
|
.logicOp = static_cast<VkLogicOp>(key.state.logic_op.Value()),
|
||||||
.attachmentCount = static_cast<u32>(cb_attachments.size()),
|
.attachmentCount = static_cast<u32>(cb_attachments.size()),
|
||||||
.pAttachments = cb_attachments.data(),
|
.pAttachments = cb_attachments.data(),
|
||||||
.blendConstants = {},
|
.blendConstants = {},
|
||||||
|
|
|
@ -271,7 +271,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
|
||||||
.tessellationShader = true,
|
.tessellationShader = true,
|
||||||
.sampleRateShading = true,
|
.sampleRateShading = true,
|
||||||
.dualSrcBlend = true,
|
.dualSrcBlend = true,
|
||||||
.logicOp = false,
|
.logicOp = true,
|
||||||
.multiDrawIndirect = false,
|
.multiDrawIndirect = false,
|
||||||
.drawIndirectFirstInstance = false,
|
.drawIndirectFirstInstance = false,
|
||||||
.depthClamp = true,
|
.depthClamp = true,
|
||||||
|
|
Loading…
Reference in New Issue