[all-commits] [llvm/llvm-project] dcbbda: [HLSL] Add static methods for resource initializat...

Helena Kotas via All-commits all-commits at lists.llvm.org
Thu Aug 28 09:09:53 PDT 2025


  Branch: refs/heads/users/hekota/pr155866-res-create-1-add-methods
  Home:   https://github.com/llvm/llvm-project
  Commit: dcbbda45ce7d3341ad74025a02b3f8c9b0391dc0
      https://github.com/llvm/llvm-project/commit/dcbbda45ce7d3341ad74025a02b3f8c9b0391dc0
  Author: Helena Kotas <hekotas at microsoft.com>
  Date:   2025-08-28 (Thu, 28 Aug 2025)

  Changed paths:
    M clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.cpp
    M clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.h
    M clang/lib/Sema/HLSLExternalSemaSource.cpp
    M clang/test/AST/HLSL/ByteAddressBuffers-AST.hlsl
    M clang/test/AST/HLSL/StructuredBuffers-AST.hlsl
    M clang/test/AST/HLSL/TypedBuffers-AST.hlsl
    M clang/test/SemaHLSL/Language/InitLists.hlsl

  Log Message:
  -----------
  [HLSL] Add static methods for resource initialization and a constructor from handle

Adds static methods `__createFromBinding` and `__createFromImplicitBinding`
to resource classes. These methods will be used for resource initialization
instead of the resource constructors that take binding information.

Also adds a private resource constructor that takes an initialized resource handle.
This constructor will be called from the static create methods.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list