• Show log

    Commit

  • Hash : 346ba328
    Author : Shahbaz Youssefi
    Date : 2024-07-30T11:42:12

    Vulkan: Simplify pulling samplers out of structs
    
    The RewriteStructSampler transformation moves samplers out of structs,
    for example turning this struct:
    
    struct Original
    {
        sampler2D s1;
        vec4 f1;
        sampler2D s2;
        sampler2D s3;
        vec4 f2;
    };
    
    into:
    
    struct Modified
    {
        vec4 f1;
        vec4 f2;
    };
    
    This required modifying the struct-field selection nodes to remap the
    field indices, causing some complication.
    
    Instead, this change makes the struct definition reorder the fields as
    such right during parse:
    
    struct Original
    {
        vec4 f1;
        vec4 f2;
        sampler2D s1;
        sampler2D s2;
        sampler2D s3;
    };
    
    As a result, the field-selection indices for non-sampler fields don't
    get changed when the struct is replaced with `Modified`.
    
    Bug: angleproject:42262842
    Bug: angleproject:349994211
    Change-Id: I76986eab780689e9887b094e3c70b87887a8ec92
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/5748789
    Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
    Reviewed-by: Yuxin Hu <yuxinhu@google.com>
    Reviewed-by: Amirali Abdolrashidi <abdolrashidi@google.com>
    

  • 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