[PATCH vkd3d 4/8] vkd3d: Implement d3d12_command_list_OMSetBlendFactor().
Józef Kucia
joseph.kucia at gmail.com
Fri Sep 28 05:16:39 CDT 2018
From: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
libs/vkd3d/command.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index b4d8ecd75179..5a2baef8a7da 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -1849,6 +1849,7 @@ static VkPipeline d3d12_command_list_get_or_create_pipeline(struct d3d12_command
{
VK_DYNAMIC_STATE_VIEWPORT,
VK_DYNAMIC_STATE_SCISSOR,
+ VK_DYNAMIC_STATE_BLEND_CONSTANTS,
VK_DYNAMIC_STATE_STENCIL_REFERENCE,
};
static const struct VkPipelineDynamicStateCreateInfo dynamic_desc =
@@ -2972,7 +2973,13 @@ static void STDMETHODCALLTYPE d3d12_command_list_RSSetScissorRects(ID3D12Graphic
static void STDMETHODCALLTYPE d3d12_command_list_OMSetBlendFactor(ID3D12GraphicsCommandList *iface,
const FLOAT blend_factor[4])
{
- FIXME("iface %p, blend_factor %p stub!\n", iface, blend_factor);
+ struct d3d12_command_list *list = impl_from_ID3D12GraphicsCommandList(iface);
+ const struct vkd3d_vk_device_procs *vk_procs;
+
+ TRACE("iface %p, blend_factor %p.\n", iface, blend_factor);
+
+ vk_procs = &list->device->vk_procs;
+ VK_CALL(vkCmdSetBlendConstants(list->vk_command_buffer, blend_factor));
}
static void STDMETHODCALLTYPE d3d12_command_list_OMSetStencilRef(ID3D12GraphicsCommandList *iface,
--
2.16.4
More information about the wine-devel
mailing list