Skip to content

Commit

Permalink
Minor fixes for the High Level Shader Language Comparison chapter (#258)
Browse files Browse the repository at this point in the history
* Add missing column delimiter
Fixes #254

* Updated sparse mapping
Fixes #255

* Fixed case for glsl functions
Fixes #256

* Removed clamp mapping
HLSL now has a function with same name
Fixes #257
  • Loading branch information
SaschaWillems authored Mar 17, 2024
1 parent c432ecb commit 900c9fc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions chapters/high_level_shader_language_comparison.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ VSOutput main(VSInput input) {
| COLOR[n] | Diffuse and specular color | float4
| NORMAL[n] | Normal vector | float4
| POSITION[n] | Vertex position in object space. | float4
| POSITIONT Transformed vertex position | float4
| POSITIONT | Transformed vertex position | float4
| PSIZE[n] | Point size | float
| TANGENT[n] | Tangent | float4
| TEXCOORD[n] | Texture coordinates | float4
Expand Down Expand Up @@ -577,7 +577,7 @@ float4 main(VSOutput input) : SV_TARGET {
| textureSize | GetDimensions
| textureProj | n.a., requires manual perspective divide
| texelFetch | Load
| sparseTexelsResidentARB | SampleLevel
| sparseTexelsResidentARB | CheckAccessFullyMapped
|====

=== Image formats
Expand Down Expand Up @@ -968,13 +968,12 @@ Most GLSL functions are also available in HLSL and vice-versa. This chapter list
[options="header"]
|====
| *GLSL* | *HLSL*
| clamp | saturate
| dFdx | ddx
| dFdxCoarse | ddx_coarse
| DFdxFine | ddx_fine
| dFdxFine | ddx_fine
| dFdy | ddy
| dFdyCoarse | ddy_coarse
| DFdyFine | ddy_fine
| dFdyFine | ddy_fine
| fma | mad
| fract | frac
| mix | lerp
Expand Down

0 comments on commit 900c9fc

Please sign in to comment.