host_translate_info.h 1.2 KB

12345678910111213141516171819202122232425
  1. // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. namespace Shader {
  5. // Try to keep entries here to a minimum
  6. // They can accidentally change the cached information in a shader
  7. /// Misc information about the host
  8. struct HostTranslateInfo {
  9. bool support_float64{}; ///< True when the device supports 64-bit floats
  10. bool support_float16{}; ///< True when the device supports 16-bit floats
  11. bool support_int64{}; ///< True when the device supports 64-bit integers
  12. bool needs_demote_reorder{}; ///< True when the device needs DemoteToHelperInvocation reordered
  13. bool support_snorm_render_buffer{}; ///< True when the device supports SNORM render buffers
  14. bool support_viewport_index_layer{}; ///< True when the device supports gl_Layer in VS
  15. bool support_geometry_shader_passthrough{}; ///< True when the device supports geometry
  16. ///< passthrough shaders
  17. bool support_conditional_barrier{}; ///< True when the device supports barriers in conditional
  18. ///< control flow
  19. };
  20. } // namespace Shader