• Show log

    Commit

  • Hash : 5a4bfd61
    Author : Dan Glastonbury
    Date : 2024-01-12T17:15:39

    Metal: Separate struct definition from function return
    
    The EmitMetal pass in shader translator does not handle writing the
    defintion of a structure that is declared in the return type of a
    function, such as:
    
        struct Foo { float val; } foo() {
            ...
        }
    
    This change adds a new pass, SeparateStructFromFunctionDeclarations, to
    separate the definition and declaration of struct variables in function
    prototypes into two statements, such as:
    
        struct Foo { float val; } foo();
        struct Bar { int val; } bar() { ... }
        void main() { ... }
        Foo foo() { ... }
    
    into:
    
        struct Foo { float val; };
        Foo foo();
        struct Bar { int val; };
        Bar bar() { ... }
        void main() { ... }
        Foo foo() { ... }
    
    Fixed: angleproject:8302
    Change-Id: Id8b6ba256d3c8375dd889facd70e4715261c1ca3
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/5191644
    Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
    Reviewed-by: Shahbaz Youssefi <syoussefi@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
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags