yuzu/src/shader_recompiler/host_translate_info.h

26 lines
1.2 KiB
C
Raw Normal View History

2022-11-05 16:58:44 +04:00
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
namespace Shader {
// Try to keep entries here to a minimum
// They can accidentally change the cached information in a shader
/// Misc information about the host
struct HostTranslateInfo {
2023-06-10 22:07:01 +04:00
bool support_float64{}; ///< True when the device supports 64-bit floats
2022-11-05 16:58:44 +04:00
bool support_float16{}; ///< True when the device supports 16-bit floats
bool support_int64{}; ///< True when the device supports 64-bit integers
bool needs_demote_reorder{}; ///< True when the device needs DemoteToHelperInvocation reordered
2022-12-01 20:38:02 +04:00
bool support_snorm_render_buffer{}; ///< True when the device supports SNORM render buffers
bool support_viewport_index_layer{}; ///< True when the device supports gl_Layer in VS
2023-01-06 21:59:36 +04:00
bool support_geometry_shader_passthrough{}; ///< True when the device supports geometry
///< passthrough shaders
2023-06-10 22:07:01 +04:00
bool support_conditional_barrier{}; ///< True when the device supports barriers in conditional
///< control flow
2022-11-05 16:58:44 +04:00
};
} // namespace Shader