Skip to content

Document DXIL versioning system comprehensively - #2

Closed
damyanp with Copilot wants to merge 5 commits into
mainfrom
copilot/document-dxil-version-usage
Closed

damyanp with Copilot wants to merge 5 commits into
mainfrom
copilot/document-dxil-version-usage

Conversation

Copilot AI commented Jan 16, 2026 •

Copy link
Copy Markdown

Created comprehensive reference documentation for DXIL versioning mechanisms across the DirectXShaderCompiler codebase. The existing system has multiple versioning layers (DXIL, shader model, container, PSV, validator) scattered across different files with no central documentation.

Documentation Coverage

Version Constant Definitions:

  • Primary DXIL version (kDxilMajor, kDxilMinor in DxilConstants.h)
  • Shader model constants (kHighestMajor, kHighestMinor in DxilShaderModel.h)
  • Container versions (DxilContainerVersionMajor/Minor in DxilContainer.h)
  • PSV versions (MAX_PSV_VERSION in DxilPipelineStateValidation.h)

Metadata Formats:

  • dx.version - DXIL version metadata format and usage
  • dx.shaderModel - Shader model metadata format
  • dx.valver - Minimum validator version requirements

Version Generation:

  • gen_version.py - Compiler version generation from git (official/dev/fixed builds)
  • hctdb_instrhelp.py - Database-driven code generation for version constants
  • Auto-generation markers in source files

Mappings and Validation:

  • Shader model to DXIL version mapping (SM 6.x → DXIL 1.x)
  • Validator version to PSV version mapping
  • Version checking in compilation and validation

Timeline:

  • Complete DXIL version history (1.0 through 1.10)
  • Major features introduced per version

Files Added

  • docs/DxilVersioning.md - 535-line reference document with table of contents, code examples, and organized source file references
Original prompt

I want to understand how DXIL versioning works. There are various constants defining DXIL version that get backed into files and used by different components. Let's work on a document enumerates all the places that they are used.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add documentation for DXIL versioning usage Document DXIL versioning system comprehensively Jan 16, 2026
Copilot AI requested a review from damyanp January 16, 2026 17:58
damyanp pushed a commit that referenced this pull request Feb 20, 2026
…d()` and `.Gather()` methods for `vk::SampledTexture2D` type. (microsoft#8070)

Part of microsoft#7979

Implement methods for `vk::SampledTexture2D`:
```hlsl
float CalculateLevelOfDetailUnclamped(float2 location);
<Template Type>4 Gather(float2 location, [int2 offset], [uint status]);
```
@damyanp damyanp closed this Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants