Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
6.4 KiB

  1. /************************************************************************************************************************************\
  2. |* *|
  3. |* Copyright 2012 NVIDIA Corporation. All rights reserved. *|
  4. |* *|
  5. |* NOTICE TO USER: *|
  6. |* *|
  7. |* This software is subject to NVIDIA ownership rights under U.S. and international Copyright laws. *|
  8. |* *|
  9. |* This software and the information contained herein are PROPRIETARY and CONFIDENTIAL to NVIDIA *|
  10. |* and are being provided solely under the terms and conditions of an NVIDIA software license agreement. *|
  11. |* Otherwise, you have no rights to use or access this software in any manner. *|
  12. |* *|
  13. |* If not covered by the applicable NVIDIA software license agreement: *|
  14. |* NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. *|
  15. |* IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. *|
  16. |* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, *|
  17. |* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. *|
  18. |* IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, *|
  19. |* OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, *|
  20. |* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOURCE CODE. *|
  21. |* *|
  22. |* U.S. Government End Users. *|
  23. |* This software is a "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT 1995), *|
  24. |* consisting of "commercial computer software" and "commercial computer software documentation" *|
  25. |* as such terms are used in 48 C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government only as a commercial end item. *|
  26. |* Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), *|
  27. |* all U.S. Government End Users acquire the software with only those rights set forth herein. *|
  28. |* *|
  29. |* Any use of this software in individual and commercial software must include, *|
  30. |* in the user documentation and internal comments to the code, *|
  31. |* the above Disclaimer (as applicable) and U.S. Government End Users Notice. *|
  32. |* *|
  33. \************************************************************************************************************************************/
  34. ////////////////////////////////////////////////////////////////////////////////
  35. ////////////////////////// NVIDIA SHADER EXTENSIONS ////////////////////////////
  36. ////////////////////////////////////////////////////////////////////////////////
  37. // This file can be included both from HLSL shader code as well as C++ code.
  38. // The app should call NvAPI_D3D_IsNvShaderExtnOpCodeSupported() to
  39. // check for support for every nv shader extension opcode it plans to use
  40. //----------------------------------------------------------------------------//
  41. //---------------------------- NV Shader Extn Version -----------------------//
  42. //----------------------------------------------------------------------------//
  43. #define NV_SHADER_EXTN_VERSION 1
  44. //----------------------------------------------------------------------------//
  45. //---------------------------- Misc constants --------------------------------//
  46. //----------------------------------------------------------------------------//
  47. #define NV_WARP_SIZE 32
  48. //----------------------------------------------------------------------------//
  49. //---------------------------- opCode constants ------------------------------//
  50. //----------------------------------------------------------------------------//
  51. #define NV_EXTN_OP_SHFL 1
  52. #define NV_EXTN_OP_SHFL_UP 2
  53. #define NV_EXTN_OP_SHFL_DOWN 3
  54. #define NV_EXTN_OP_SHFL_XOR 4
  55. #define NV_EXTN_OP_VOTE_ALL 5
  56. #define NV_EXTN_OP_VOTE_ANY 6
  57. #define NV_EXTN_OP_VOTE_BALLOT 7
  58. #define NV_EXTN_OP_GET_LANE_ID 8
  59. #define NV_EXTN_OP_FP16_ATOMIC 12
  60. #define NV_EXTN_OP_FP32_ATOMIC 13
  61. #define NV_EXTN_OP_TYPED_UAV_LOAD 14