microsoft / hlsl-specs

HLSL Specifications
MIT License
118 stars 30 forks source link

Add doc for packoffset. #207

Closed python3kgae closed 4 months ago

python3kgae commented 4 months ago

Added design doc for packoffset to start the discussion.

Right now, cbuffer llvm IR and metadata is not ready yet. Need to update the related part once cbuffer got full support.

Also need to decide how to support 16bit types.

python3kgae commented 4 months ago

Seems like a good start to me. Will be interested in what the plan is for answering the open questions and for getting the finalized cbuffer IR. Do you think there's meaningful implementation that can be started without these resolved?

Yes. The AST part should be OK to be done without the IR and metadata support.

llvm-beanz commented 4 months ago

This PR broke the GitHub pages build. The document contains a header to start a raw block that isn't terminated. You need to add this to the end of the document:

<!-- {% endraw %} -->