mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[dxvk] Use custom spec constant for swap chain blitter
This commit is contained in:
parent
185331df9c
commit
3349f2d80e
@ -211,8 +211,10 @@ namespace dxvk {
|
||||
ctx->pushConstants(0, sizeof(args), &args);
|
||||
|
||||
ctx->setSpecConstant(VK_PIPELINE_BIND_POINT_GRAPHICS, 0, srcView->imageInfo().sampleCount);
|
||||
ctx->setSpecConstant(VK_PIPELINE_BIND_POINT_GRAPHICS, 1, m_gammaView != nullptr);
|
||||
ctx->draw(3, 1, 0, 0);
|
||||
ctx->setSpecConstant(VK_PIPELINE_BIND_POINT_GRAPHICS, 0, 0);
|
||||
ctx->setSpecConstant(VK_PIPELINE_BIND_POINT_GRAPHICS, 1, 0);
|
||||
}
|
||||
|
||||
void DxvkSwapchainBlitter::resolve(
|
||||
|
@ -1,6 +1,6 @@
|
||||
#version 450
|
||||
|
||||
layout(constant_id = 1) const bool s_gamma_bound = true;
|
||||
layout(constant_id = 1226) const bool s_gamma_bound = false;
|
||||
|
||||
layout(binding = 0) uniform sampler2D s_image;
|
||||
layout(binding = 1) uniform sampler1D s_gamma;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#version 450
|
||||
|
||||
layout(constant_id = 1) const bool s_gamma_bound = true;
|
||||
layout(constant_id = 1226) const bool s_gamma_bound = false;
|
||||
|
||||
layout(binding = 0) uniform sampler2D s_image;
|
||||
layout(binding = 1) uniform sampler1D s_gamma;
|
||||
|
@ -1,7 +1,7 @@
|
||||
#version 450
|
||||
|
||||
layout(constant_id = 1) const bool s_gamma_bound = true;
|
||||
layout(constant_id = 1225) const uint c_samples = 0;
|
||||
layout(constant_id = 1226) const bool s_gamma_bound = false;
|
||||
|
||||
layout(binding = 0) uniform sampler2DMS s_image;
|
||||
layout(binding = 1) uniform sampler1D s_gamma;
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
#extension GL_AMD_shader_fragment_mask: enable
|
||||
|
||||
layout(constant_id = 1) const bool s_gamma_bound = true;
|
||||
layout(constant_id = 1225) const uint c_samples = 0;
|
||||
layout(constant_id = 1226) const bool s_gamma_bound = false;
|
||||
|
||||
layout(binding = 0) uniform sampler2DMS s_image;
|
||||
layout(binding = 1) uniform sampler1D s_gamma;
|
||||
|
Loading…
x
Reference in New Issue
Block a user