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.params.default.frag
Find file
BlameHistoryPermalink
  • steve-lunarg's avatar
    HLSL default function parameters · 26d31453
    steve-lunarg authored Dec 23, 2016
    This PR adds support for default function parameters in the following cases:
    
    1. Simple constants, such as void fn(int x, float myparam = 3)
    2. Expressions that can be const folded, such a ... myparam = sin(some_const)
    3. Initializer lists that can be const folded, such as ... float2 myparam = {1,2}
    
    New tests are added: hlsl.params.default.frag and hlsl.params.default.err.frag
    (for testing error situations, such as ambiguity or non-const-foldable).
    
    In order to avoid sampler method ambiguity, the hlsl better() lambda now
    considers sampler matches.  Previously, all sampler types looked identical
    since only the basic type of EbtSampler was considered.
    26d31453
hlsl.params.default.frag 1.1 KB
EditWeb IDE
×

Replace hlsl.params.default.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.