host_translate_info.h 796 B

1234567891011121314151617181920
  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_float16{}; ///< True when the device supports 16-bit floats
  10. bool support_int64{}; ///< True when the device supports 64-bit integers
  11. bool needs_demote_reorder{}; ///< True when the device needs DemoteToHelperInvocation reordered
  12. bool support_snorm_render_buffer{}; ///< True when the device supports SNORM render buffers
  13. bool support_viewport_index_layer{}; ///< True when the device supports gl_Layer in VS
  14. };
  15. } // namespace Shader