zdxc/vendor/hlsl-headers
Peter Li fb322f24a7 M0.1: HLSL preprocessor matching dxc -P across the DXC test corpus
- Source manager (line splicing, UTF-8 BOM) and clang-style diagnostics.
- Lexer producing preprocessing tokens.
- Preprocessor modelled on clang's: object and function-like macros, #/##,
  variadics with GNU comma elision, painted recursion blocking, nested
  argument pre-expansion, #if/#elif expressions, #include with -I and
  #pragma once, #line, #error/#warning, pass-through #pragma, and dxc's
  predefined macros (__HLSL_VERSION, __SHADER_TARGET_*, __spirv__, ...).
- dxc's compiled-in HLSL headers (<dx/linalg.h>, <vk/spirv.h>, ...) are
  vendored as data and used as the fallback for angled includes.
- -P/-Fi/-D/-I/-HV 2021/-enable-16bit-types options; profiles now cover
  lib_, ms_, as_ and SM 6.0-6.11.
- `zig build oracle-pp`: token-for-token comparison with dxc -P. 2060 of
  2060 corpus files dxc accepts match.
2026-10-31 00:16:50 -07:00
..
dx M0.1: HLSL preprocessor matching dxc -P across the DXC test corpus 2026-10-31 00:16:50 -07:00
vk M0.1: HLSL preprocessor matching dxc -P across the DXC test corpus 2026-10-31 00:16:50 -07:00
LICENSE.txt M0.1: HLSL preprocessor matching dxc -P across the DXC test corpus 2026-10-31 00:16:50 -07:00
README.txt M0.1: HLSL preprocessor matching dxc -P across the DXC test corpus 2026-10-31 00:16:50 -07:00
enable_if M0.1: HLSL preprocessor matching dxc -P across the DXC test corpus 2026-10-31 00:16:50 -07:00
type_traits M0.1: HLSL preprocessor matching dxc -P across the DXC test corpus 2026-10-31 00:16:50 -07:00
vector_utils M0.1: HLSL preprocessor matching dxc -P across the DXC test corpus 2026-10-31 00:16:50 -07:00

README.txt

HLSL Standard Header Library
============================

The contents of this directory and subdirectories are the HLSL Standard Header
library. These headers are open source software. You may freely distribute all
or parts of these headers under the terms of the license agreement found in
LICENSE.txt.