mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-09 06:35:54 +00:00
Conversion can happen for structure materialization (modf, frexp). If both structure members are the same type and value, then a constant::Splat will be constructed, which needs to handle conversion. Bug: chromium:1417515 Change-Id: Iadd14ce00b8d5c22226c601ec5af9a84e6c0c5cf Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122900 Reviewed-by: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 10
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
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 %foo "foo"
|
|
OpName %__modf_result_f32 "__modf_result_f32"
|
|
OpMemberName %__modf_result_f32 0 "fract"
|
|
OpMemberName %__modf_result_f32 1 "whole"
|
|
OpMemberDecorate %__modf_result_f32 0 Offset 0
|
|
OpMemberDecorate %__modf_result_f32 1 Offset 4
|
|
%void = OpTypeVoid
|
|
%1 = OpTypeFunction %void
|
|
%float = OpTypeFloat 32
|
|
%__modf_result_f32 = OpTypeStruct %float %float
|
|
%9 = OpConstantNull %__modf_result_f32
|
|
%unused_entry_point = OpFunction %void None %1
|
|
%4 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%foo = OpFunction %void None %1
|
|
%6 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|