Blender V5.3
blender::gpu::VKWorkarounds Struct Reference

#include <vk_device.hh>

Public Member Functions

void log () const

Public Attributes

bool not_aligned_pixel_formats = false
bool static_viewport_scissor = false
bool missing_srgb_clear_conversion = false

Detailed Description

Definition at line 130 of file vk_device.hh.

Member Function Documentation

◆ log()

void blender::gpu::VKWorkarounds::log ( ) const

Member Data Documentation

◆ missing_srgb_clear_conversion

bool blender::gpu::VKWorkarounds::missing_srgb_clear_conversion = false

Legacy AMD drivers do not perform sRGB conversions when clearing attachments.

Definition at line 151 of file vk_device.hh.

Referenced by log().

◆ not_aligned_pixel_formats

bool blender::gpu::VKWorkarounds::not_aligned_pixel_formats = false

Some devices don't support pixel formats that are aligned to 24 and 48 bits. In this case we need to use a different texture format.

If set to true we should work around this issue by using a different texture format.

Definition at line 137 of file vk_device.hh.

Referenced by log().

◆ static_viewport_scissor

bool blender::gpu::VKWorkarounds::static_viewport_scissor = false

Some Qualcomm drivers keep command-buffer-local state written by vkCmdSetViewport across command buffer resets.

When set, viewports and scissors are baked into the pipeline as static state and vkCmdSetViewport/vkCmdSetScissor are never used.

Definition at line 146 of file vk_device.hh.

Referenced by blender::gpu::VKShader::ensure_and_get_graphics_pipeline(), blender::gpu::VKShader::ensure_graphics_pipelines(), log(), and blender::gpu::render_graph::VKCommandBufferWrapper::VKCommandBufferWrapper().


The documentation for this struct was generated from the following files: