mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 19:31:25 +00:00
Fix the Renamer to preserve builtin structure member names. Fix the HLSL writer to emit the modf / frexp result type even if there is no private / function storage usage of the types. Fixed: chromium:1236161 Change-Id: I93b9d92980682f9a9cb090d07b04e4c3f6a2f705 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60922 Reviewed-by: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 13
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
%10 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
|
|
OpExecutionMode %unused_entry_point LocalSize 1 1 1
|
|
OpName %unused_entry_point "unused_entry_point"
|
|
OpName %tint_symbol "tint_symbol"
|
|
OpName %_modf_result "_modf_result"
|
|
OpMemberName %_modf_result 0 "fract"
|
|
OpMemberName %_modf_result 1 "whole"
|
|
OpMemberDecorate %_modf_result 0 Offset 0
|
|
OpMemberDecorate %_modf_result 1 Offset 4
|
|
%void = OpTypeVoid
|
|
%1 = OpTypeFunction %void
|
|
%float = OpTypeFloat 32
|
|
%_modf_result = OpTypeStruct %float %float
|
|
%float_1 = OpConstant %float 1
|
|
%unused_entry_point = OpFunction %void None %1
|
|
%4 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%tint_symbol = OpFunction %void None %1
|
|
%6 = OpLabel
|
|
%7 = OpExtInst %_modf_result %10 ModfStruct %float_1
|
|
%12 = OpCompositeExtract %float %7 1
|
|
OpReturn
|
|
OpFunctionEnd
|