[all-commits] [llvm/llvm-project] 2815f2: [HLSL] Add sema for use of samplers and gathers on...

Deric C. via All-commits all-commits at lists.llvm.org
Wed Jul 29 16:09:48 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2815f298d1fae984188d3854acd6f0ca503fcd53
      https://github.com/llvm/llvm-project/commit/2815f298d1fae984188d3854acd6f0ca503fcd53
  Author: Deric C. <cheung.deric at gmail.com>
  Date:   2026-07-29 (Wed, 29 Jul 2026)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaHLSL.cpp
    A clang/test/SemaHLSL/Resources/Textures-double-element-type-errors.hlsl
    A clang/test/SemaHLSL/Resources/Textures-integer-element-type.hlsl

  Log Message:
  -----------
  [HLSL] Add sema for use of samplers and gathers on textures of doubles and ints (#212613)

Fixes https://github.com/llvm/llvm-project/issues/198882 and
https://github.com/llvm/llvm-project/issues/198883

This PR:
- Implements sema checks to reject the use of samplers and gathers on
textures of doubles.
- Implements sema checks to reject use of samplers on textures of
integers before shader model 6.7

Assisted by: Claude Opus 5



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