Thanks for using Compiler Explorer
Sponsors
Jakt
C++
Ada
Analysis
Android Java
Android Kotlin
Assembly
C
C3
Carbon
C++ (Circle)
CIRCT
Clean
CMake
CMakeScript
COBOL
C++ for OpenCL
MLIR
Cppx
Cppx-Blue
Cppx-Gold
Cpp2-cppfront
Crystal
C#
CUDA C++
D
Dart
Elixir
Erlang
Fortran
F#
GLSL
Go
Haskell
HLSL
Hook
Hylo
IL
ispc
Java
Julia
Kotlin
LLVM IR
LLVM MIR
Modula-2
Nim
Objective-C
Objective-C++
OCaml
OpenCL C
Pascal
Pony
Python
Racket
Ruby
Rust
Snowball
Scala
Solidity
Spice
SPIR-V
Swift
LLVM TableGen
Toit
TypeScript Native
V
Vala
Visual Basic
WASM
Zig
Javascript
GIMPLE
Ygen
hlsl source #1
Output
Compile to binary object
Link to binary
Execute the code
Intel asm syntax
Demangle identifiers
Verbose demangling
Filters
Unused labels
Library functions
Directives
Comments
Horizontal whitespace
Debug intrinsics
Compiler
Clang (trunk)
DXC (trunk)
DXC 1.6.2112
DXC 1.7.2207
DXC 1.7.2212
DXC 1.7.2308
DXC 1.8.2306-preview
DXC 1.8.2403
DXC 1.8.2403.1
DXC 1.8.2403.2
DXC 1.8.2405
DXC 1.8.2407
RGA 2.6.1 (DXC 1.6.2112)
RGA 2.6.1 (DXC 1.7.2207)
RGA 2.6.2 (DXC 1.6.2112)
RGA 2.6.2 (DXC 1.7.2207)
RGA 2.6.2 (DXC trunk)
RGA 2.9.0 (DXC trunk)
Options
Source code
struct gl_PerVertex { float4 gl_Position : SV_Position; float gl_PointSize : PSIZE; float gl_ClipDistance[1] : SV_ClipDistance; float gl_CullDistance[1] : SV_CullDistance; }; struct type10 { float2 member : LOC0; float4 gl_Position1 : SV_Position; float gl_PointSize1 : PSIZE; float gl_ClipDistance1[1] : SV_ClipDistance; float gl_CullDistance1[1] : SV_CullDistance; }; static float2 v_uv; static float2 a_uv; static gl_PerVertex perVertexStruct; static float2 a_pos; struct VertexInput { float2 a_uv2 : LOC1; float2 a_pos2 : LOC0; }; void main() { float2 _expr12 = a_uv; v_uv = _expr12; float2 _expr13 = a_pos; perVertexStruct.gl_Position = float4(_expr13.x, _expr13.y, 0.0, 1.0); return; } type10 vert_main(VertexInput vertexinput) { a_uv = vertexinput.a_uv2; a_pos = vertexinput.a_pos2; main(); float2 _expr10 = v_uv; float4 _expr11 = perVertexStruct.gl_Position; float _expr12 = perVertexStruct.gl_PointSize; float _expr13[] = perVertexStruct.gl_ClipDistance; float _expr14[] = perVertexStruct.gl_CullDistance; const type10 type10_ = { _expr10, _expr11, _expr12, _expr13, _expr14 }; return type10_; }
Become a Patron
Sponsor on GitHub
Donate via PayPal
Source on GitHub
Mailing list
Installed libraries
Wiki
Report an issue
How it works
Contact the author
CE on Mastodon
About the author
Statistics
Changelog
Version tree