[Vulkan] Add gamma_render_target_as_srgb support
This commit is contained in:
@@ -59,6 +59,7 @@ bool VulkanPipelineCache::Initialize() {
|
||||
render_target_cache_.msaa_2x_attachments_supported(),
|
||||
render_target_cache_.msaa_2x_no_attachments_supported(),
|
||||
edram_fragment_shader_interlock,
|
||||
render_target_cache_.gamma_render_target_as_srgb(),
|
||||
render_target_cache_.draw_resolution_scale_x(),
|
||||
render_target_cache_.draw_resolution_scale_y());
|
||||
|
||||
|
||||
@@ -520,6 +520,7 @@ bool VulkanRenderTargetCache::Initialize(uint32_t shared_memory_binding_count) {
|
||||
// Host render targets.
|
||||
|
||||
depth_float24_round_ = cvars::depth_float24_round;
|
||||
gamma_render_target_as_srgb_ = cvars::gamma_render_target_as_srgb;
|
||||
|
||||
// Host depth storing pipeline layout.
|
||||
VkDescriptorSetLayout host_depth_store_descriptor_set_layouts[] = {
|
||||
|
||||
@@ -155,6 +155,9 @@ class VulkanRenderTargetCache final : public RenderTargetCache {
|
||||
return depth_unorm24_vulkan_format_supported_;
|
||||
}
|
||||
bool depth_float24_round() const { return depth_float24_round_; }
|
||||
bool gamma_render_target_as_srgb() const {
|
||||
return gamma_render_target_as_srgb_;
|
||||
}
|
||||
|
||||
bool msaa_2x_attachments_supported() const {
|
||||
return msaa_2x_attachments_supported_;
|
||||
|
||||
Reference in New Issue
Block a user