Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • 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
  • angle
  • Repository

Switch branch/tag
  • angle
  • include
  • platform
  • FeaturesGL.h
Find file
BlameHistoryPermalink
  • Geoff Lang's avatar
    Convert DXT1 RGB data to DXT3 RGBA when uploading to the GPU. · e6582161
    Geoff Lang authored Sep 16, 2019
    DXT1 has a specific 'BLACK' code that results in transparent black pixels when
    sampled. D3D does not have specific RGB-only DXT1 formats like OpenGL does so
    when this code is encountered, we sample 0 alpha for these pixels when GL would
    expect 1 because the alpha channel should not exist.
    
    Work around this by converting to DXT3 RGBA, adding an extra block of 1.0 alpha
    pixels for each color block.
    
    Mac Intel OpenGL requires additional workarounds to always sample 1.0 alpha.
    Set the texture swizzle parameters to force it.
    
    BUG=angleproject:3729
    
    Change-Id: Ia3647085acd97bb01af4e95ef3f6f21dcfb6a554
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1804880
    Commit-Queue: Geoff Lang <geofflang@chromium.org>
    Reviewed-by: 's avatarIan Elliott <ianelliott@google.com>
    e6582161
FeaturesGL.h 20.7 KB
EditWeb IDE
×

Replace FeaturesGL.h

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.