mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 21:46:05 +00:00

This adds a new document about DXIL Resource Handling. I've attempted to describe here how we intend to use TargetExtTypes to represent resources in LLVM IR and the various intrinsics we'll need to lower these through LLVM to DXIL. For now this document is limited to the high level concepts and a few details on buffer types, and there are a number of TODOs in the document that we'll iterate on as we progress in the implementation.
23 lines
513 B
ReStructuredText
23 lines
513 B
ReStructuredText
=================
|
|
HLSL IR Reference
|
|
=================
|
|
|
|
.. contents::
|
|
:local:
|
|
|
|
Introduction
|
|
============
|
|
|
|
The goal of this document is to provide a reference for all the special purpose
|
|
IR metadata and attributes used by the HLSL code generation path.
|
|
|
|
Function Attributes
|
|
===================
|
|
|
|
``hlsl.shader``
|
|
---------------
|
|
|
|
The ``hlsl.shader`` function attribute is a string attribute applied to entry
|
|
functions. The value is the string representation of the shader stage (i.e.
|
|
``compute``, ``pixel``, etc).
|