llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[DirectX backend] Generate metadata for shader props

Open python3kgae opened this issue 4 years ago • 1 comments

Now only kDxilShaderFlagsTag and kDxilNumThreadsTag are supported. Need to support all these tags while supporting more shader profiles.

  static const unsigned kDxilShaderFlagsTag     = 0;
  static const unsigned kDxilGSStateTag         = 1;
  static const unsigned kDxilDSStateTag         = 2;
  static const unsigned kDxilHSStateTag         = 3;
  static const unsigned kDxilNumThreadsTag      = 4;
  static const unsigned kDxilAutoBindingSpaceTag    = 5;
  static const unsigned kDxilRayPayloadSizeTag  = 6;
  static const unsigned kDxilRayAttribSizeTag   = 7;
  static const unsigned kDxilShaderKindTag      = 8;
  static const unsigned kDxilMSStateTag         = 9;
  static const unsigned kDxilASStateTag         = 10;
  static const unsigned kDxilWaveSizeTag        = 11;
  static const unsigned kDxilEntryRootSigTag    = 12;

Doc at https://github.com/microsoft/DirectXShaderCompiler/blob/main/docs/DXIL.rst#shader-properties-and-capabilities

python3kgae avatar Sep 23 '22 23:09 python3kgae

This needs to be broken down in a per-feature manner. Keeping as needing additional refinement to create the new issues.

davidcook-msft avatar May 21 '24 18:05 davidcook-msft