Skip to content
  • Faith Ekstrand's avatar
    main: Add a concept of an array format · 3da735cc
    Faith Ekstrand authored and Iago Toral's avatar Iago Toral committed
    
    
    An array format is a 32-bit integer format identifier that can represent
    any format that can be represented as an array of standard GL datatypes.
    Whie the MESA_FORMAT enums provide several of these, they don't account for
    all of them.
    
    v2 by Iago Toral Quiroga <itoral@igalia.com>:
     - Implement mesa_array_format as a plain bitfiled uint32_t type instead of
       using a struct inside a union to access the various components packed in
       it. This is necessary to support bigendian properly, as pointed out by
       Ian.
     - Squashed: Make float types normalized
    
    v3 by Iago Toral Quiroga <itoral@igalia.com>:
      - Include compiler.h in formats.h, which is necessary to build in MSVC as
        indicated by Brian Paul.
    
    Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
    3da735cc