Skip to content

[SPIRV][HLSL] Implement frac lowering  #88059

@farzonl

Description

@farzonl
  • Create a frac intrinsic for spirv use the hlsl intrinsic switching to swap on target.

update the frac.hlsl unit tests:

// RUN: dxil-pc-shadermodel6.3-library %s -fnative-half-type \

example:
https://shader-playground.timjones.io/020254826814c6bfb01e671c08c15db4

and implement the OpExtInst Fract Lowering:
%13 = OpExtInst %v4float %1 Fract %12
https://registry.khronos.org/SPIR-V/specs/1.0/GLSL.std.450.html#Fract

Metadata

Metadata

Assignees

No one assigned

    Labels

    HLSLHLSL Language SupportSPIR-VSPIR-V language supportbackend:SPIR-Vclang:codegenIR generation bugs: mangling, exceptions, etc.

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions