dawn-cmake/test/intrinsics/modf.wgsl.expected.spvasm
Ben Clayton 053559d051 intrinsics: Add new struct form of modf(), frexp()
Implement these for all the writers.
SPIR-V reader not implemented (the old overloads weren't implemented either).

Deprecate the old overloads.

Fixed: tint:54
Change-Id: If66d26dbac3389ff604734f31b426abe47868b91
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59302
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: James Price <jrprice@google.com>
2021-07-23 16:43:01 +00:00

29 lines
1.1 KiB
Plaintext

; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 12
; Schema: 0
OpCapability Shader
%8 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
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_23000002 = OpConstant %float 1.23000002
%main = OpFunction %void None %1
%4 = OpLabel
%5 = OpExtInst %_modf_result %8 ModfStruct %float_1_23000002
%10 = OpCompositeExtract %float %5 0
%11 = OpCompositeExtract %float %5 1
OpReturn
OpFunctionEnd