[all-commits] [llvm/llvm-project] 50f534: [HLSL][SPIR-V] Handle SV_Position builtin in PS (#...

Nathan Gauër via All-commits all-commits at lists.llvm.org
Wed Jun 11 05:23:15 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 50f534e21cfb47aaf44e1613f71b56cca55ba395
      https://github.com/llvm/llvm-project/commit/50f534e21cfb47aaf44e1613f71b56cca55ba395
  Author: Nathan Gauër <brioche at google.com>
  Date:   2025-06-11 (Wed, 11 Jun 2025)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/include/clang/Sema/SemaHLSL.h
    M clang/lib/CodeGen/CGHLSLRuntime.cpp
    M clang/lib/Parse/ParseHLSL.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/lib/Sema/SemaHLSL.cpp
    A clang/test/CodeGenHLSL/semantics/SV_Position.ps.hlsl
    A clang/test/SemaHLSL/Semantics/position.ps.hlsl
    A clang/test/SemaHLSL/Semantics/position.ps.size.hlsl
    A clang/test/SemaHLSL/Semantics/position.vs.hlsl

  Log Message:
  -----------
  [HLSL][SPIR-V] Handle SV_Position builtin in PS (#141759)

This commit is using the same mechanism as vk::ext_builtin_input to
implement the SV_Position semantic input.
The HLSL signature is not yet ready for DXIL, hence this commit only
implements the SPIR-V side.

This is incomplete as it doesn't allow the semantic on hull/domain and
other shaders, but it's a first step to validate the overall
input/output
semantic logic.

Fixes https://github.com/llvm/llvm-project/issues/136969



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