NVAPI Reference Documentation
NVIDIA
Release 550
Wed Mar 20 2024

Data Structures | Macros | Functions | Variables
nvHLSLExtnsInternal.h File Reference
#include "nvShaderExtnEnums.h"

Data Structures

struct  NvShaderExtnStruct
 

Macros

#define NV_EXTN_ATOM_AND   0
 
#define NV_EXTN_ATOM_OR   1
 
#define NV_EXTN_ATOM_XOR   2
 
#define NV_EXTN_ATOM_ADD   3
 
#define NV_EXTN_ATOM_MAX   6
 
#define NV_EXTN_ATOM_MIN   7
 
#define NV_EXTN_ATOM_SWAP   8
 
#define NV_EXTN_ATOM_CAS   9
 

Functions

int __NvGetShflMaskFromWidth (uint width)
 
void __NvReferenceUAVForOp (RWByteAddressBuffer uav)
 
void __NvReferenceUAVForOp (RWTexture1D< float2 > uav)
 
void __NvReferenceUAVForOp (RWTexture2D< float2 > uav)
 
void __NvReferenceUAVForOp (RWTexture3D< float2 > uav)
 
void __NvReferenceUAVForOp (RWTexture1D< float4 > uav)
 
void __NvReferenceUAVForOp (RWTexture2D< float4 > uav)
 
void __NvReferenceUAVForOp (RWTexture3D< float4 > uav)
 
void __NvReferenceUAVForOp (RWTexture1D< float > uav)
 
void __NvReferenceUAVForOp (RWTexture2D< float > uav)
 
void __NvReferenceUAVForOp (RWTexture3D< float > uav)
 
void __NvReferenceUAVForOp (RWTexture1D< uint2 > uav)
 
void __NvReferenceUAVForOp (RWTexture2D< uint2 > uav)
 
void __NvReferenceUAVForOp (RWTexture3D< uint2 > uav)
 
void __NvReferenceUAVForOp (RWTexture1D< uint4 > uav)
 
void __NvReferenceUAVForOp (RWTexture2D< uint4 > uav)
 
void __NvReferenceUAVForOp (RWTexture3D< uint4 > uav)
 
void __NvReferenceUAVForOp (RWTexture1D< uint > uav)
 
void __NvReferenceUAVForOp (RWTexture2D< uint > uav)
 
void __NvReferenceUAVForOp (RWTexture3D< uint > uav)
 
void __NvReferenceUAVForOp (RWTexture1D< int2 > uav)
 
void __NvReferenceUAVForOp (RWTexture2D< int2 > uav)
 
void __NvReferenceUAVForOp (RWTexture3D< int2 > uav)
 
void __NvReferenceUAVForOp (RWTexture1D< int4 > uav)
 
void __NvReferenceUAVForOp (RWTexture2D< int4 > uav)
 
void __NvReferenceUAVForOp (RWTexture3D< int4 > uav)
 
void __NvReferenceUAVForOp (RWTexture1D< int > uav)
 
void __NvReferenceUAVForOp (RWTexture2D< int > uav)
 
void __NvReferenceUAVForOp (RWTexture3D< int > uav)
 
uint __NvAtomicOpFP16x2 (RWByteAddressBuffer uav, uint byteAddress, uint fp16x2Val, uint atomicOpType)
 
uint __NvAtomicOpFP16x2 (RWTexture1D< float2 > uav, uint address, uint fp16x2Val, uint atomicOpType)
 
uint __NvAtomicOpFP16x2 (RWTexture2D< float2 > uav, uint2 address, uint fp16x2Val, uint atomicOpType)
 
uint __NvAtomicOpFP16x2 (RWTexture3D< float2 > uav, uint3 address, uint fp16x2Val, uint atomicOpType)
 
uint2 __NvAtomicOpFP16x2 (RWTexture1D< float4 > uav, uint address, uint2 fp16x2Val, uint atomicOpType)
 
uint2 __NvAtomicOpFP16x2 (RWTexture2D< float4 > uav, uint2 address, uint2 fp16x2Val, uint atomicOpType)
 
uint2 __NvAtomicOpFP16x2 (RWTexture3D< float4 > uav, uint3 address, uint2 fp16x2Val, uint atomicOpType)
 
uint __fp32x2Tofp16x2 (float2 val)
 
uint2 __fp32x4Tofp16x4 (float4 val)
 
float __NvAtomicAddFP32 (RWByteAddressBuffer uav, uint byteAddress, float val)
 
float __NvAtomicAddFP32 (RWTexture1D< float > uav, uint address, float val)
 
float __NvAtomicAddFP32 (RWTexture2D< float > uav, uint2 address, float val)
 
float __NvAtomicAddFP32 (RWTexture3D< float > uav, uint3 address, float val)
 
uint2 __NvAtomicCompareExchangeUINT64 (RWByteAddressBuffer uav, uint byteAddress, uint2 compareValue, uint2 value)
 
uint2 __NvAtomicOpUINT64 (RWByteAddressBuffer uav, uint byteAddress, uint2 value, uint atomicOpType)
 
uint2 __NvAtomicCompareExchangeUINT64 (RWTexture1D< uint2 > uav, uint address, uint2 compareValue, uint2 value)
 
uint2 __NvAtomicOpUINT64 (RWTexture1D< uint2 > uav, uint address, uint2 value, uint atomicOpType)
 
uint2 __NvAtomicCompareExchangeUINT64 (RWTexture2D< uint2 > uav, uint2 address, uint2 compareValue, uint2 value)
 
uint2 __NvAtomicOpUINT64 (RWTexture2D< uint2 > uav, uint2 address, uint2 value, uint atomicOpType)
 
uint2 __NvAtomicCompareExchangeUINT64 (RWTexture3D< uint2 > uav, uint3 address, uint2 compareValue, uint2 value)
 
uint2 __NvAtomicOpUINT64 (RWTexture3D< uint2 > uav, uint3 address, uint2 value, uint atomicOpType)
 
uint4 __NvFootprint (uint texSpace, uint texIndex, uint smpSpace, uint smpIndex, uint texType, float3 location, uint footprintmode, uint gran, int3 offset=int3(0, 0, 0))
 
uint4 __NvFootprintBias (uint texSpace, uint texIndex, uint smpSpace, uint smpIndex, uint texType, float3 location, uint footprintmode, uint gran, float bias, int3 offset=int3(0, 0, 0))
 
uint4 __NvFootprintLevel (uint texSpace, uint texIndex, uint smpSpace, uint smpIndex, uint texType, float3 location, uint footprintmode, uint gran, float lodLevel, int3 offset=int3(0, 0, 0))
 
uint4 __NvFootprintGrad (uint texSpace, uint texIndex, uint smpSpace, uint smpIndex, uint texType, float3 location, uint footprintmode, uint gran, float3 ddx, float3 ddy, int3 offset=int3(0, 0, 0))
 
uint __NvGetSpecial (uint subOpCode)
 
int __NvShflGeneric (int val, uint srcLane, uint maskClampVal, out uint laneValid)
 

Variables

RWStructuredBuffer< NvShaderExtnStructg_NvidiaExt
 

Macro Definition Documentation

◆ NV_EXTN_ATOM_ADD

#define NV_EXTN_ATOM_ADD   3

◆ NV_EXTN_ATOM_AND

#define NV_EXTN_ATOM_AND   0

◆ NV_EXTN_ATOM_CAS

#define NV_EXTN_ATOM_CAS   9

◆ NV_EXTN_ATOM_MAX

#define NV_EXTN_ATOM_MAX   6

◆ NV_EXTN_ATOM_MIN

#define NV_EXTN_ATOM_MIN   7

◆ NV_EXTN_ATOM_OR

#define NV_EXTN_ATOM_OR   1

◆ NV_EXTN_ATOM_SWAP

#define NV_EXTN_ATOM_SWAP   8

◆ NV_EXTN_ATOM_XOR

#define NV_EXTN_ATOM_XOR   2

Function Documentation

◆ __fp32x2Tofp16x2()

uint __fp32x2Tofp16x2 ( float2  val)

◆ __fp32x4Tofp16x4()

uint2 __fp32x4Tofp16x4 ( float4  val)

◆ __NvAtomicAddFP32() [1/4]

float __NvAtomicAddFP32 ( RWByteAddressBuffer  uav,
uint  byteAddress,
float  val 
)

◆ __NvAtomicAddFP32() [2/4]

float __NvAtomicAddFP32 ( RWTexture1D< float >  uav,
uint  address,
float  val 
)

◆ __NvAtomicAddFP32() [3/4]

float __NvAtomicAddFP32 ( RWTexture2D< float >  uav,
uint2  address,
float  val 
)

◆ __NvAtomicAddFP32() [4/4]

float __NvAtomicAddFP32 ( RWTexture3D< float >  uav,
uint3  address,
float  val 
)

◆ __NvAtomicCompareExchangeUINT64() [1/4]

uint2 __NvAtomicCompareExchangeUINT64 ( RWByteAddressBuffer  uav,
uint  byteAddress,
uint2  compareValue,
uint2  value 
)

◆ __NvAtomicCompareExchangeUINT64() [2/4]

uint2 __NvAtomicCompareExchangeUINT64 ( RWTexture1D< uint2 >  uav,
uint  address,
uint2  compareValue,
uint2  value 
)

◆ __NvAtomicCompareExchangeUINT64() [3/4]

uint2 __NvAtomicCompareExchangeUINT64 ( RWTexture2D< uint2 >  uav,
uint2  address,
uint2  compareValue,
uint2  value 
)

◆ __NvAtomicCompareExchangeUINT64() [4/4]

uint2 __NvAtomicCompareExchangeUINT64 ( RWTexture3D< uint2 >  uav,
uint3  address,
uint2  compareValue,
uint2  value 
)

◆ __NvAtomicOpFP16x2() [1/7]

uint __NvAtomicOpFP16x2 ( RWByteAddressBuffer  uav,
uint  byteAddress,
uint  fp16x2Val,
uint  atomicOpType 
)

◆ __NvAtomicOpFP16x2() [2/7]

uint __NvAtomicOpFP16x2 ( RWTexture1D< float2 >  uav,
uint  address,
uint  fp16x2Val,
uint  atomicOpType 
)

◆ __NvAtomicOpFP16x2() [3/7]

uint2 __NvAtomicOpFP16x2 ( RWTexture1D< float4 >  uav,
uint  address,
uint2  fp16x2Val,
uint  atomicOpType 
)

◆ __NvAtomicOpFP16x2() [4/7]

uint __NvAtomicOpFP16x2 ( RWTexture2D< float2 >  uav,
uint2  address,
uint  fp16x2Val,
uint  atomicOpType 
)

◆ __NvAtomicOpFP16x2() [5/7]

uint2 __NvAtomicOpFP16x2 ( RWTexture2D< float4 >  uav,
uint2  address,
uint2  fp16x2Val,
uint  atomicOpType 
)

◆ __NvAtomicOpFP16x2() [6/7]

uint __NvAtomicOpFP16x2 ( RWTexture3D< float2 >  uav,
uint3  address,
uint  fp16x2Val,
uint  atomicOpType 
)

◆ __NvAtomicOpFP16x2() [7/7]

uint2 __NvAtomicOpFP16x2 ( RWTexture3D< float4 >  uav,
uint3  address,
uint2  fp16x2Val,
uint  atomicOpType 
)

◆ __NvAtomicOpUINT64() [1/4]

uint2 __NvAtomicOpUINT64 ( RWByteAddressBuffer  uav,
uint  byteAddress,
uint2  value,
uint  atomicOpType 
)

◆ __NvAtomicOpUINT64() [2/4]

uint2 __NvAtomicOpUINT64 ( RWTexture1D< uint2 >  uav,
uint  address,
uint2  value,
uint  atomicOpType 
)

◆ __NvAtomicOpUINT64() [3/4]

uint2 __NvAtomicOpUINT64 ( RWTexture2D< uint2 >  uav,
uint2  address,
uint2  value,
uint  atomicOpType 
)

◆ __NvAtomicOpUINT64() [4/4]

uint2 __NvAtomicOpUINT64 ( RWTexture3D< uint2 >  uav,
uint3  address,
uint2  value,
uint  atomicOpType 
)

◆ __NvFootprint()

uint4 __NvFootprint ( uint  texSpace,
uint  texIndex,
uint  smpSpace,
uint  smpIndex,
uint  texType,
float3  location,
uint  footprintmode,
uint  gran,
int3  offset = int3(0, 0, 0) 
)

◆ __NvFootprintBias()

uint4 __NvFootprintBias ( uint  texSpace,
uint  texIndex,
uint  smpSpace,
uint  smpIndex,
uint  texType,
float3  location,
uint  footprintmode,
uint  gran,
float  bias,
int3  offset = int3(0, 0, 0) 
)

◆ __NvFootprintGrad()

uint4 __NvFootprintGrad ( uint  texSpace,
uint  texIndex,
uint  smpSpace,
uint  smpIndex,
uint  texType,
float3  location,
uint  footprintmode,
uint  gran,
float3  ddx,
float3  ddy,
int3  offset = int3(0, 0, 0) 
)

◆ __NvFootprintLevel()

uint4 __NvFootprintLevel ( uint  texSpace,
uint  texIndex,
uint  smpSpace,
uint  smpIndex,
uint  texType,
float3  location,
uint  footprintmode,
uint  gran,
float  lodLevel,
int3  offset = int3(0, 0, 0) 
)

◆ __NvGetShflMaskFromWidth()

int __NvGetShflMaskFromWidth ( uint  width)

References NV_WARP_SIZE.

Referenced by NvShfl(), NvShflDown(), and NvShflXor().

◆ __NvGetSpecial()

uint __NvGetSpecial ( uint  subOpCode)

◆ __NvReferenceUAVForOp() [1/28]

void __NvReferenceUAVForOp ( RWByteAddressBuffer  uav)

◆ __NvReferenceUAVForOp() [2/28]

void __NvReferenceUAVForOp ( RWTexture1D< float >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [3/28]

void __NvReferenceUAVForOp ( RWTexture1D< float2 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [4/28]

void __NvReferenceUAVForOp ( RWTexture1D< float4 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [5/28]

void __NvReferenceUAVForOp ( RWTexture1D< int >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [6/28]

void __NvReferenceUAVForOp ( RWTexture1D< int2 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [7/28]

void __NvReferenceUAVForOp ( RWTexture1D< int4 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [8/28]

void __NvReferenceUAVForOp ( RWTexture1D< uint >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [9/28]

void __NvReferenceUAVForOp ( RWTexture1D< uint2 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [10/28]

void __NvReferenceUAVForOp ( RWTexture1D< uint4 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [11/28]

void __NvReferenceUAVForOp ( RWTexture2D< float >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [12/28]

void __NvReferenceUAVForOp ( RWTexture2D< float2 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [13/28]

void __NvReferenceUAVForOp ( RWTexture2D< float4 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [14/28]

void __NvReferenceUAVForOp ( RWTexture2D< int >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [15/28]

void __NvReferenceUAVForOp ( RWTexture2D< int2 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [16/28]

void __NvReferenceUAVForOp ( RWTexture2D< int4 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [17/28]

void __NvReferenceUAVForOp ( RWTexture2D< uint >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [18/28]

void __NvReferenceUAVForOp ( RWTexture2D< uint2 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [19/28]

void __NvReferenceUAVForOp ( RWTexture2D< uint4 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [20/28]

void __NvReferenceUAVForOp ( RWTexture3D< float >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [21/28]

void __NvReferenceUAVForOp ( RWTexture3D< float2 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [22/28]

void __NvReferenceUAVForOp ( RWTexture3D< float4 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [23/28]

void __NvReferenceUAVForOp ( RWTexture3D< int >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [24/28]

void __NvReferenceUAVForOp ( RWTexture3D< int2 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [25/28]

void __NvReferenceUAVForOp ( RWTexture3D< int4 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [26/28]

void __NvReferenceUAVForOp ( RWTexture3D< uint >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [27/28]

void __NvReferenceUAVForOp ( RWTexture3D< uint2 >  uav)

References g_NvidiaExt.

◆ __NvReferenceUAVForOp() [28/28]

void __NvReferenceUAVForOp ( RWTexture3D< uint4 >  uav)

References g_NvidiaExt.

◆ __NvShflGeneric()

int __NvShflGeneric ( int  val,
uint  srcLane,
uint  maskClampVal,
out uint  laneValid 
)

Variable Documentation

◆ g_NvidiaExt

RWStructuredBuffer<NvShaderExtnStruct> g_NvidiaExt

Referenced by __NvAtomicAddFP32(), __NvAtomicAddFP32(), __NvAtomicAddFP32(), __NvAtomicAddFP32(), __NvAtomicCompareExchangeUINT64(), __NvAtomicCompareExchangeUINT64(), __NvAtomicCompareExchangeUINT64(), __NvAtomicCompareExchangeUINT64(), __NvAtomicOpFP16x2(), __NvAtomicOpFP16x2(), __NvAtomicOpFP16x2(), __NvAtomicOpFP16x2(), __NvAtomicOpFP16x2(), __NvAtomicOpFP16x2(), __NvAtomicOpFP16x2(), __NvAtomicOpUINT64(), __NvAtomicOpUINT64(), __NvAtomicOpUINT64(), __NvAtomicOpUINT64(), __NvFootprint(), __NvFootprintBias(), __NvFootprintGrad(), __NvFootprintLevel(), __NvGetSpecial(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvReferenceUAVForOp(), __NvShflGeneric(), NvAll(), NvAny(), NvBallot(), NvEvaluateAttributeAtSampleForVPRS(), NvEvaluateAttributeAtSampleForVPRS(), NvEvaluateAttributeAtSampleForVPRS(), NvEvaluateAttributeAtSampleForVPRS(), NvEvaluateAttributeAtSampleForVPRS(), NvEvaluateAttributeAtSampleForVPRS(), NvEvaluateAttributeAtSampleForVPRS(), NvEvaluateAttributeAtSampleForVPRS(), NvEvaluateAttributeAtSampleForVPRS(), NvEvaluateAttributeAtSampleForVPRS(), NvEvaluateAttributeAtSampleForVPRS(), NvEvaluateAttributeAtSampleForVPRS(), NvEvaluateAttributeSnappedForVPRS(), NvEvaluateAttributeSnappedForVPRS(), NvEvaluateAttributeSnappedForVPRS(), NvEvaluateAttributeSnappedForVPRS(), NvEvaluateAttributeSnappedForVPRS(), NvEvaluateAttributeSnappedForVPRS(), NvEvaluateAttributeSnappedForVPRS(), NvEvaluateAttributeSnappedForVPRS(), NvEvaluateAttributeSnappedForVPRS(), NvEvaluateAttributeSnappedForVPRS(), NvEvaluateAttributeSnappedForVPRS(), NvEvaluateAttributeSnappedForVPRS(), NvGetLaneId(), NvGetShadingRate(), NvRtIsBackFacing(), NvRtIsMicroTriangleHit(), NvRtMicroTriangleBarycentrics(), NvRtMicroTriangleObjectPositions(), NvRtTriangleObjectPositions(), NvShfl(), NvShflDown(), NvShflUp(), NvShflXor(), NvWaveMatch(), NvWaveMatch(), NvWaveMatch(), NvWaveMatch(), NvWaveMatch(), and NvWaveMatch().


NVIDIA
Copyright (c) 2007–2024 NVIDIA Corporation. All rights reserved.

NVIDIA