348 行
24 KiB
C#
348 行
24 KiB
C#
using ComputeSharp.Core.Intrinsics.Attributes;
|
|
using ComputeSharp.Exceptions;
|
|
|
|
namespace ComputeSharp;
|
|
|
|
/// <summary>
|
|
/// A <see langword="class"/> that maps the supported HLSL intrinsic functions that can be used in compute shaders.
|
|
/// </summary>
|
|
public static partial class Hlsl
|
|
{
|
|
/// <summary>
|
|
/// Submits an error message to the information queue and terminates the current draw or dispatch call being executed.
|
|
/// </summary>
|
|
/// <remarks>This operation does nothing on rasterizers that do not support it.</remarks>
|
|
[HlslIntrinsicName("abort")]
|
|
public static void Abort() => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abort)}()");
|
|
|
|
/// <summary>
|
|
/// Blocks execution of all threads in a group until all memory accesses have been completed.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// A memory barrier guarantees that outstanding memory operations have completed.
|
|
/// Threads are synchronized at GroupSync barriers.
|
|
/// This may stall a thread or threads if memory operations are in progress.
|
|
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
|
/// </remarks>
|
|
public static void AllMemoryBarrier() => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AllMemoryBarrier)}()");
|
|
|
|
/// <summary>
|
|
/// Blocks execution of all threads in a group until all memory accesses have been completed and all threads in the group have reached this call.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// A memory barrier guarantees that outstanding memory operations have completed.
|
|
/// Threads are synchronized at GroupSync barriers.
|
|
/// This may stall a thread or threads if memory operations are in progress.
|
|
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
|
/// </remarks>
|
|
public static void AllMemoryBarrierWithGroupSync() => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AllMemoryBarrierWithGroupSync)}()");
|
|
|
|
/// <summary>
|
|
/// Blocks execution of all threads in a group until all device memory accesses have been completed.
|
|
/// </summary>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void DeviceMemoryBarrier() => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(DeviceMemoryBarrier)}()");
|
|
|
|
/// <summary>
|
|
/// Blocks execution of all threads in a group until all device memory accesses have been completed and all threads in the group have reached this call.
|
|
/// </summary>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void DeviceMemoryBarrierWithGroupSync() => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(DeviceMemoryBarrierWithGroupSync)}()");
|
|
|
|
/// <summary>
|
|
/// Blocks execution of all threads in a group until all group shared accesses have been completed.
|
|
/// </summary>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void GroupMemoryBarrier() => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(GroupMemoryBarrier)}()");
|
|
|
|
/// <summary>
|
|
/// Blocks execution of all threads in a group until all group shared accesses have been completed and all threads in the group have reached this call.
|
|
/// </summary>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void GroupMemoryBarrierWithGroupSync() => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(GroupMemoryBarrierWithGroupSync)}()");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic add of a value to a destination.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedAdd(ref int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAdd)}({typeof(int)}, {typeof(int)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic add of a value to a destination.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedAdd(ref uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAdd)}({typeof(uint)}, {typeof(uint)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic add of a value to a destination.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <param name="original">The original input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedAdd(ref int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAdd)}({typeof(int)}, {typeof(int)}, {typeof(int)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic add of a value to a destination.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <param name="original">The original input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedAdd(ref uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAdd)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic and of a value to a destination.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedAnd(ref int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAnd)}({typeof(int)}, {typeof(int)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic and of a value to a destination.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedAnd(ref uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAnd)}({typeof(uint)}, {typeof(uint)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic and of a value to a destination.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <param name="original">The original input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedAnd(ref int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAnd)}({typeof(int)}, {typeof(int)}, {typeof(int)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic and of a value to a destination.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <param name="original">The original input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedAnd(ref uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAnd)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})");
|
|
|
|
/// <summary>
|
|
/// Atomically compares the destination with the comparison value. If they are identical, the destination
|
|
/// is overwritten with the input value. The original value is set to the destination's original value.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="comparison">The comparison value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <param name="original">The original value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedCompareExchange(ref int destination, int comparison, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedCompareExchange)}({typeof(int)}, {typeof(int)}, {typeof(int)}, {typeof(int)})");
|
|
|
|
/// <summary>
|
|
/// Atomically compares the destination with the comparison value. If they are identical, the destination
|
|
/// is overwritten with the input value. The original value is set to the destination's original value.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="comparison">The comparison value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <param name="original">The original value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedCompareExchange(ref uint destination, uint comparison, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedCompareExchange)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)}, {typeof(uint)})");
|
|
|
|
/// <summary>
|
|
/// Atomically compares the destination to the comparison value. If they
|
|
/// are identical, the destination is overwritten with the input value.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="comparison">The comparison value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedCompareStore(ref int destination, int comparison, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedCompareStore)}({typeof(int)}, {typeof(int)}, {typeof(int)})");
|
|
|
|
/// <summary>
|
|
/// Atomically compares the destination to the comparison value. If they
|
|
/// are identical, the destination is overwritten with the input value.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="comparison">The comparison value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedCompareStore(ref uint destination, uint comparison, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedCompareStore)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})");
|
|
|
|
/// <summary>
|
|
/// Assigns value to dest and returns the original value.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <param name="original">The original value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedExchange(ref int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedExchange)}({typeof(int)}, {typeof(int)}, {typeof(int)})");
|
|
|
|
/// <summary>
|
|
/// Assigns value to dest and returns the original value.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <param name="original">The original value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedExchange(ref uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedExchange)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic max.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedMax(ref int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMax)}({typeof(int)}, {typeof(int)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic max.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedMax(ref uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMax)}({typeof(uint)}, {typeof(uint)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic max.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <param name="original">The original value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedMax(ref int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMax)}({typeof(int)}, {typeof(int)}, {typeof(int)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic max.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <param name="original">The original value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedMax(ref uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMax)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic min.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedMin(ref int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMin)}({typeof(int)}, {typeof(int)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic min.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedMin(ref uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMin)}({typeof(uint)}, {typeof(uint)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic min.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <param name="original">The original value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedMin(ref int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMin)}({typeof(int)}, {typeof(int)}, {typeof(int)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic min.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <param name="original">The original value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedMin(ref uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMin)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic or.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedOr(ref int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedOr)}({typeof(int)}, {typeof(int)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic or.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedOr(ref uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedOr)}({typeof(uint)}, {typeof(uint)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic or.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <param name="original">The original value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedOr(ref int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedOr)}({typeof(int)}, {typeof(int)}, {typeof(int)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic or.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <param name="original">The original value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedOr(ref uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedOr)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic xor.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedXor(ref int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedXor)}({typeof(int)}, {typeof(int)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic xor.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedXor(ref uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedXor)}({typeof(uint)}, {typeof(uint)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic xor.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <param name="original">The original value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedXor(ref int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedXor)}({typeof(int)}, {typeof(int)}, {typeof(int)})");
|
|
|
|
/// <summary>
|
|
/// Performs a guaranteed atomic xor.
|
|
/// </summary>
|
|
/// <param name="destination">The destination value.</param>
|
|
/// <param name="value">The input value.</param>
|
|
/// <param name="original">The original value.</param>
|
|
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
|
public static void InterlockedXor(ref uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedXor)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})");
|
|
|
|
/// <summary>
|
|
/// Returns a lighting coefficient vector.
|
|
/// </summary>
|
|
/// <param name="nDotL">The dot product of the normalized surface normal and the light vector.</param>
|
|
/// <param name="nDotH">The dot product of the half-angle vector and the surface normal.</param>
|
|
/// <param name="m">A specular exponent.</param>
|
|
/// <returns>The lighting coefficient vector.</returns>
|
|
/// <remarks>
|
|
/// This function returns a lighting coefficient vector (ambient, diffuse, specular, 1) where:
|
|
/// <list type="bullet">
|
|
/// <item>Ambient: <c>1</c>.</item>
|
|
/// <item>Diffuse: <c>n * l < 0 ? 0 : n * l</c>.</item>
|
|
/// <item>Specular: <c>n * l < 0 || n * h < 0 ? 0 : (n * h) ^ m</c>.</item>
|
|
/// </list>
|
|
/// Where the vector <c>n</c> is the normal vector, <c>l</c> is the direction to light and <c>h</c> is the half vector.
|
|
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
|
/// </remarks>
|
|
[HlslIntrinsicName("lit")]
|
|
public static float Lit(float nDotL, float nDotH, float m) => default;
|
|
}
|