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.imagefetch-subvec4.comp
Find file
BlameHistoryPermalink
  • LoopDawg's avatar
    HLSL: Add conversions for image ops during SPV construction · 4425f245
    LoopDawg authored Feb 18, 2018
    HLSL allows image and texture types to be templatized on sub-vec4 types,
    or even structures.  This was mostly handled already during creation of
    sampling operations.  However, for operator[] which can generate image
    loads, this wasn't happening.
    
    It also isn't very easy to do at that point in time, because operator[]
    does not know where the results it produces will end up.  They may be
    an lvalue or an rvalue, and there's a post-process to convert loads to
    stores.  They may end up in atomic ops.
    
    To bypass that difficulty, GlslangToSpv now looks for this case and
    adds the appropriate conversion.  LIMITATION: this only works for
    cases for which a simple conversion opcode suffices.  That is to say,
    it will not work if the type is templatized on a struct.
    4425f245
hlsl.imagefetch-subvec4.comp 161 Bytes
EditWeb IDE
×

Replace hlsl.imagefetch-subvec4.comp

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.