[PATCH] D130017: [HLSL] Add RWBuffer default constructor

Chris Bieneman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 18 08:13:01 PDT 2022


beanz created this revision.
beanz added reviewers: aaron.ballman, Anastasia, kuhar, bogner, python3kgae.
Herald added a project: All.
beanz requested review of this revision.
Herald added a project: clang.

This fills out the default constructor for RWBuffer to assign the
handle with the result of __builtin_hlsl_create_handle which we can
then treat as a pointer to the resource data through the mid-level of
the compiler.

Depends on D130016 <https://reviews.llvm.org/D130016>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130017

Files:
  clang/include/clang/Basic/HLSLRuntime.h
  clang/lib/Sema/HLSLExternalSemaSource.cpp
  clang/test/AST/HLSL/RWBuffer-AST.hlsl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130017.445517.patch
Type: text/x-patch
Size: 6151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220718/c39a49d4/attachment.bin>


More information about the cfe-commits mailing list