mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-14 00:48:44 +01:00
[dxvk] Pass new shader binding info struct to swapchain blit shaders
This commit is contained in:
parent
70a95d9085
commit
89dadc8453
@ -317,7 +317,12 @@ namespace dxvk {
|
|||||||
SpirvCodeBuffer fsCodeCopy(dxvk_present_frag);
|
SpirvCodeBuffer fsCodeCopy(dxvk_present_frag);
|
||||||
SpirvCodeBuffer fsCodeResolve(dxvk_present_frag_ms);
|
SpirvCodeBuffer fsCodeResolve(dxvk_present_frag_ms);
|
||||||
SpirvCodeBuffer fsCodeResolveAmd(dxvk_present_frag_ms_amd);
|
SpirvCodeBuffer fsCodeResolveAmd(dxvk_present_frag_ms_amd);
|
||||||
|
|
||||||
|
const std::array<DxvkBindingInfo, 2> fsBindings = {{
|
||||||
|
{ VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, BindingIds::Image, VK_IMAGE_VIEW_TYPE_2D, 0, VK_ACCESS_SHADER_READ_BIT },
|
||||||
|
{ VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, BindingIds::Gamma, VK_IMAGE_VIEW_TYPE_2D, 0, VK_ACCESS_SHADER_READ_BIT },
|
||||||
|
}};
|
||||||
|
|
||||||
const std::array<DxvkResourceSlot, 2> fsResourceSlots = {{
|
const std::array<DxvkResourceSlot, 2> fsResourceSlots = {{
|
||||||
{ BindingIds::Image, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, VK_IMAGE_VIEW_TYPE_2D },
|
{ BindingIds::Image, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, VK_IMAGE_VIEW_TYPE_2D },
|
||||||
{ BindingIds::Gamma, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, VK_IMAGE_VIEW_TYPE_1D },
|
{ BindingIds::Gamma, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, VK_IMAGE_VIEW_TYPE_1D },
|
||||||
@ -330,6 +335,8 @@ namespace dxvk {
|
|||||||
|
|
||||||
DxvkShaderCreateInfo fsInfo;
|
DxvkShaderCreateInfo fsInfo;
|
||||||
fsInfo.stage = VK_SHADER_STAGE_FRAGMENT_BIT;
|
fsInfo.stage = VK_SHADER_STAGE_FRAGMENT_BIT;
|
||||||
|
fsInfo.bindingCount = fsBindings.size();
|
||||||
|
fsInfo.bindings = fsBindings.data();
|
||||||
fsInfo.resourceSlotCount = fsResourceSlots.size();
|
fsInfo.resourceSlotCount = fsResourceSlots.size();
|
||||||
fsInfo.resourceSlots = fsResourceSlots.data();
|
fsInfo.resourceSlots = fsResourceSlots.data();
|
||||||
fsInfo.pushConstSize = sizeof(PresenterArgs);
|
fsInfo.pushConstSize = sizeof(PresenterArgs);
|
||||||
|
Loading…
Reference in New Issue
Block a user