Skip to content

Commit

Permalink
Update for SM 6.8 release (#172)
Browse files Browse the repository at this point in the history
- Remove (experimental)
- Remove Wave Matrix from SM 6.8 doc
- Add Expanded Comparison Sampling
- Add Extended Command Info
- Add Wave Size Range
- Replace SM_6_8 with SM_6_x for WaveMatrix doc name to avoid implication that it's part of SM 6.8
  • Loading branch information
tex3d authored Mar 9, 2024
1 parent 9bad913 commit c031277
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Make sure that you visit the [DirectX Landing Page](https://devblogs.microsoft.c
* [Shader Model 6.5](d3d/HLSL_ShaderModel6_5.md)
* [Shader Model 6.6](d3d/HLSL_ShaderModel6_6.md)
* [Shader Model 6.7](d3d/HLSL_ShaderModel6_7.md)
* [Shader Model 6.8 (experimental)](d3d/HLSL_ShaderModel6_8.md)
* [Shader Model 6.8](d3d/HLSL_ShaderModel6_8.md)
* [SV_Barycentrics](https://github.com/microsoft/DirectXShaderCompiler/wiki/SV_Barycentrics)
* [SV_ViewID](https://github.com/microsoft/DirectXShaderCompiler/wiki/SV_ViewID)

Expand Down
File renamed without changes.
45 changes: 32 additions & 13 deletions d3d/HLSL_ShaderModel6_8.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,53 @@
<h1>HLSL Shader Model 6.8</h1>

v0.5 2023-06-21
v0.6 2024-03-11

<h2> Contents</h2>
<h2>Contents</h2>

- [Introduction](#introduction)
- [Work Graphs (experimental)](#work-graphs-experimental)
- [Wave Matrix (experimental)](#wave-matrix-experimental)
- [Work Graphs](#work-graphs)
- [Expanded Comparison Sampling](#expanded-comparison-sampling)
- [Extended Command Information](#extended-command-information)
- [Wave Size Range](#wave-size-range)
- [Change Log](#change-log)

# Introduction
## Introduction

This document covers the new Shader Model 6.8. A brief summary of each new feature
is listed below along with links to detailed specifications.

# Work Graphs (experimental)
## Work Graphs

Work Graphs define a system of shader nodes that feed into each other
to enable tailored GPU work creation.

See the [Work Graphs (experimental)](WorkGraphs.md) documentation for more details.
See the [Work Graphs](WorkGraphs.md) documentation for more details.

# Wave Matrix (experimental)
## Expanded Comparison Sampling

Wave Matrices are type abstractions of hardware support
for higher bandwidth matrix multiplications, useful
in machine learning and image processing.
Several existing operations have been expanded to support Comparison Samplers.
New methods: `SampleCmpBias`, `SampleCmpGrad`.
Added overloads: `CalculateLevelOfDetail`, `CalculateLevelOfDetailUnclamped`.

See the [Wave Matrix (experimental)](HLSL_SM_6_8_WaveMatrix.md) documentation for more details about this feature, also called Wave Matrix Multiply and Accumulate or WaveMMA for short.
See the [Expanded Comparison Sampling](https://microsoft.github.io/hlsl-specs/proposals/0014-expanded-comparison-sampling.html) documentation for more details.

# Change Log
## Extended Command Information

Two new system-value semantics are required to be supported in HLSL shader model 6.8:

- `SV_StartVertexLocation` - Reports `StartVertexLocation` from `DrawInstanced()` or `BaseVertexLocation` from `DrawIndexedInstanced()` to a vertex shader.
- `SV_StartInstanceLocation` - Reports `StartInstanceLocation` From `Draw*Instanced` to a vertex shader.

See the [Extended Command Information](https://microsoft.github.io/hlsl-specs/proposals/0015-extended-command-info.html) documentation for more details.

## Wave Size Range

A new variant of the [WaveSize](HLSL_SM_6_6_WaveSize.md) attribute is added: `[WaveSize( min, max [, preferred] )]`.
This allows you to specify a range and optional preferred size.

See the [Wave Size Range](https://microsoft.github.io/hlsl-specs/proposals/0013-wave-size-range.html) documentation for more details.

## Change Log

Version|Date|Description
-|-|-
Expand All @@ -38,3 +56,4 @@ Version|Date|Description
0.3| 24 Aug 2022|Add WaveMMA spec link
0.4| 01 May 2023|Update included elements
0.5| 21 Jun 2023|Update for preview release
0.6| 11 Mar 2024|Remove WaveMMA; remove experimental; add Expanded Comparison Sampling, Extended Command Information, and Wave Size Range

0 comments on commit c031277

Please sign in to comment.