Skip to content

Commit 00765c3

Browse files
authored
Minor core lib doc fixes (shader-slang#5599)
* Minor core lib doc fixes Fixing a couple functions that were missing their categorization. Also cleaned up some trailing spaces. * Update hlsl.meta.slang
1 parent a43b3c4 commit 00765c3

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

source/slang/hlsl.meta.slang

+8-6
Original file line numberDiff line numberDiff line change
@@ -5860,7 +5860,7 @@ bool all(matrix<T,N,M> x)
58605860
__glsl_extension(GL_KHR_memory_scope_semantics)
58615861
[require(cuda_glsl_hlsl_metal_spirv_wgsl, memorybarrier)]
58625862
void AllMemoryBarrier()
5863-
{
5863+
{
58645864
__target_switch
58655865
{
58665866
case hlsl: __intrinsic_asm "AllMemoryBarrier";
@@ -6007,7 +6007,7 @@ __glsl_extension(GL_ARB_gpu_shader5)
60076007
[__readNone]
60086008
[require(cpp_cuda_glsl_hlsl_spirv, shader5_sm_5_0)]
60096009
double asdouble(uint lowbits, uint highbits)
6010-
{
6010+
{
60116011
__target_switch
60126012
{
60136013
case hlsl: __intrinsic_asm "asdouble";
@@ -6040,7 +6040,7 @@ double2 asdouble(uint2 lowbits, uint2 highbits)
60406040
[__readNone]
60416041
[require(cpp_cuda_glsl_hlsl_metal_spirv_wgsl, shader5_sm_4_0)]
60426042
float asfloat(int x)
6043-
{
6043+
{
60446044
__target_switch
60456045
{
60466046
case cpp: __intrinsic_asm "$P_asfloat($0)";
@@ -6381,7 +6381,7 @@ __glsl_extension(GL_ARB_gpu_shader5)
63816381
[__readNone]
63826382
[require(cpp_cuda_glsl_hlsl_spirv, shader5_sm_4_0)]
63836383
void asuint(double value, out uint lowbits, out uint highbits)
6384-
{
6384+
{
63856385
__target_switch
63866386
{
63876387
case hlsl: __intrinsic_asm "asuint";
@@ -10477,6 +10477,7 @@ matrix<T,N,M> min(matrix<T,N,M> x, matrix<T,N,M> y)
1047710477
/// @param y The second value to compare.
1047810478
/// @param z The third value to compare.
1047910479
/// @return The smallest of the three values, element-wise if vector typed.
10480+
/// @category math
1048010481
__generic<T : __BuiltinFloatingPointType>
1048110482
[__readNone]
1048210483
[require(cpp_cuda_glsl_hlsl_metal_spirv, sm_4_0_version)]
@@ -10542,7 +10543,8 @@ vector<T,N> fmin(vector<T,N> x, vector<T,N> y)
1054210543
/// @param x The first value to compare.
1054310544
/// @param y The second value to compare.
1054410545
/// @param z The third value to compare.
10545-
/// @return The smallest of the three values, element-wise if vector typed, considering NaN. If all three values are NaN, NaN is returned. If any value is NaN, the smallest non-NaN value is returned./// @category math
10546+
/// @return The smallest of the three values, element-wise if vector typed, considering NaN. If all three values are NaN, NaN is returned. If any value is NaN, the smallest non-NaN value is returned.
10547+
/// @category math
1054610548
__generic<T : __BuiltinFloatingPointType>
1054710549
[__readNone]
1054810550
[require(cpp_cuda_glsl_hlsl_metal_spirv, sm_4_0_version)]
@@ -20667,4 +20669,4 @@ T workgroupUniformLoad<T>(__ref T v)
2066720669
default:
2066820670
return v;
2066920671
}
20670-
}
20672+
}

0 commit comments

Comments
 (0)