• Show log

    Commit

  • Hash : 20ddb802
    Author : Gregg Tavares
    Date : 2021-10-28T11:01:12

    Fix Blitting in Metal backend.
    
    The Metal backend was clipping in integer space.
    If the src and dst are not the same size,
    say src is 3 wide and dst is 4 wide, and src
    starts at -1, then src will be clipped by one
    making the src 2 wide. It got 1/3 smaller so the
    dst get 1/3 smaller making it 2.666 pixels wide.
    The dst then needs to be expanded to pixels so 3 wide.
    But, that means the src also needs to be expanded
    0.3333 * 3(originalSrcWidth) / 4(originalDstWidth)
    so its new left edge is -0.245 which is not an integer.
    
    Bug: angleproject:6598
    Change-Id: I2faa966b18b457f474a3e7f6844ef64bfa66dbe8
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3251683
    Reviewed-by: Kenneth Russell <kbr@chromium.org>
    Reviewed-by: Geoff Lang <geofflang@chromium.org>
    Reviewed-by: Kyle Piddington <kpiddington@apple.com>
    Commit-Queue: Gregg Tavares <gman@chromium.org>
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/angle.git
    Git SSH git@git.kmx.io:kc3-lang/angle.git
    Public access ? public
    Description

    A conformant OpenGL ES implementation for Windows, Mac, Linux, iOS and Android.

    Homepage

    Github

    Users
    kc3_lang_org thodg_w www_kmx_io thodg_l thodg thodg_m
    Tags

  • README.md

  • ANGLE back-ends

    This folder contains shared back-end-specific implementation files. The classes and types in renderer are not specified by GLES. They instead are common to all the various ANGLE implementations.

    See renderer_utils.h for various cross back-end utilties.

    ANGLE Formats

    The ANGLE format class, angle::Format, works as a union between GLES and all the various back-end formats. It can represent any type of format in ANGLE. e.g. Formats in Vulkan that don’t exist in GLES, or DXGI formats that don’t exist in GLES, or Windows/Android surface configs that don’t exist anywhere else.

    The glInternalFormat member of angle::Format represents the “closest” GL format for an ANGLE format. For formats that don’t exist in GLES this will not be exactly what the format represents.

    The back-ends also define their own format tables. See the Vulkan Format table docs and the [D3D11 format table docs][D23D11FormatDocs].

    DXGI Format Info

    DXGI formats are used in both the GL and D3D11 back-end. Therefore the generated info table lives in this common shared location.

    The DXGI info table is generated by gen_dxgi_format_table.py and sources data from dxgi_format_data.json. The main purpose of the table is to convert from a DXGI format to an ANGLE format, where the ANGLE format should have all the necessary information.