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
  • src
  • tests
  • gl_tests
  • VertexAttributeTest.cpp
Find file
BlameHistoryPermalink
  • Mohan Maiya's avatar
    Vulkan: Allow certain usecases to have non-zero stride · e697e379
    Mohan Maiya authored Mar 10, 2021
    When glVertexAttribPointer is called with a type parameter that doesn't
    match the vertex attribute binding's type in shader, the vulkan backend
    used to force the stride to 0. This is acceptable since this usecase is
    unspecified in spec.
    
    To allow for better app compatibility, introduce a new extension that
    requires normal glVertexAttribPointer functionality to be maintained if
    the mismatched vertex attribute type is a mismatched integer type sign.
    
    This change also modifies the VkFormat used when a mismatch in
    signedness occurs to use a VkFormat with the same component width as
    the type parameter.
    
    Bug: angleproject:5762
    Test: VertexAttributeTestES3.DrawWithRelaxedVertexAttributeType*
    Test: VertexAttributeTestES3.DrawWithMismatchedComponentCount*
    Change-Id: I7e5281500afc3d77f0775821447cabfad3ff2d66
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2765012
    Commit-Queue: Mohan Maiya <m.maiya@samsung.com>
    Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    e697e379
VertexAttributeTest.cpp 137 KB
EditWeb IDE
×

Replace VertexAttributeTest.cpp

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.