2022-04-23 08:59:50 +00:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2021-06-16 06:03:08 +00:00
|
|
|
|
|
|
|
#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 {
|
2021-08-24 00:00:11 +00: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-11-30 22:16:00 +00: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
|
2022-11-23 21:30:23 +00:00
|
|
|
u32 min_ssbo_alignment{}; ///< Minimum alignment supported by the device for SSBOs
|
2022-12-31 23:19:10 +00:00
|
|
|
bool support_geometry_shader_passthrough{}; ///< True when the device supports geometry passthrough shaders
|
2021-06-16 06:03:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Shader
|