Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
G
glslang
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • glslang
  • Repository

Switch branch/tag
  • glslang
  • Test
  • hlsl.logical.binary.frag
Find file
BlameHistoryPermalink
  • steve-lunarg's avatar
    HLSL: Fix unary and binary operator type conversion issues · e5921f13
    steve-lunarg authored Oct 15, 2016
    This fixes defects as follows:
    
    1. handleLvalue could be called on a non-L-value, and it shouldn't be.
    
    2. HLSL allows unary negation on non-bool values.  TUnaryOperator::promote
       can now promote other types (e.g, int, float) to bool for this op.
    
    3. HLSL allows binary logical operations (&&, ||) on arbitrary types, similar
       (2).
    
    4. HLSL allows mod operation on arbitrary types, which will be promoted.
       E.g, int % float -> float % float.
    e5921f13
hlsl.logical.binary.frag 273 Bytes
EditWeb IDE
×

Replace hlsl.logical.binary.frag

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.