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.reflection.binding.frag
Find file
BlameHistoryPermalink
  • steve-lunarg's avatar
    add reflection queries to return a TType. Fix minor issue with interface names. · 8ffc36ae
    steve-lunarg authored Sep 21, 2016
    - Add new queries: TProgram::getUniformTType and getUniformBlockTType,
      which return a const TType*, or nullptr on a bad index.  These are valid for
      any source language.
    
    - Interface name for HLSL cbuffers is taken from the (only) available declaration name,
      whereas before it was always an empty string, which caused some troubles with reflection
      mapping them all to the same index slot.  This also makes it appear in the SPIR-V binary
      instead of an empty string.
    
    - Print the binding as part of the reflection textual dump.
    
    - TType::clone becomes const.  Needed to call it from a const method, and anyway it doesn't
      change the object it's called on.
    
    - Because the TObjectReflection constructor is called with a TType *reference* (not pointer)
      so that it's guaranteed to pass in a type, and the "badReflection" value should use a nullptr
      there, that now has a dedicated static method to obtain the bad value.  It uses a private
      constructor, so external users can't create one with a nullptr type.
    8ffc36ae
hlsl.reflection.binding.frag 640 Bytes
EditWeb IDE
×

Replace hlsl.reflection.binding.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.