mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Add support for remaining unsupported ASTC formats (#2963)
* Add support for remaining unsupported ASTC formats Add new ASTC formats into pixelformats example and ninja scripts Rebuild ASTC textures * Update idl and generate Move comma in pixelformats Co-authored-by: Raziel Alphadios <raziely@gmail.com>
This commit is contained in:
@@ -1024,9 +1024,15 @@ pub const TextureFormat = enum(c_int) {
|
||||
/// ASTC 4x4 8.0 BPP
|
||||
ASTC4x4,
|
||||
|
||||
/// ASTC 5x4 6.40 BPP
|
||||
ASTC5x4,
|
||||
|
||||
/// ASTC 5x5 5.12 BPP
|
||||
ASTC5x5,
|
||||
|
||||
/// ASTC 6x5 4.27 BPP
|
||||
ASTC6x5,
|
||||
|
||||
/// ASTC 6x6 3.56 BPP
|
||||
ASTC6x6,
|
||||
|
||||
@@ -1036,9 +1042,27 @@ pub const TextureFormat = enum(c_int) {
|
||||
/// ASTC 8x6 2.67 BPP
|
||||
ASTC8x6,
|
||||
|
||||
/// ASTC 8x8 2.00 BPP
|
||||
ASTC8x8,
|
||||
|
||||
/// ASTC 10x5 2.56 BPP
|
||||
ASTC10x5,
|
||||
|
||||
/// ASTC 10x6 2.13 BPP
|
||||
ASTC10x6,
|
||||
|
||||
/// ASTC 10x8 1.60 BPP
|
||||
ASTC10x8,
|
||||
|
||||
/// ASTC 10x10 1.28 BPP
|
||||
ASTC10x10,
|
||||
|
||||
/// ASTC 12x10 1.07 BPP
|
||||
ASTC12x10,
|
||||
|
||||
/// ASTC 12x12 0.89 BPP
|
||||
ASTC12x12,
|
||||
|
||||
/// Compressed formats above.
|
||||
Unknown,
|
||||
R1,
|
||||
@@ -1291,7 +1315,7 @@ pub const Caps = extern struct {
|
||||
numGPUs: u8,
|
||||
gpu: [4]GPU,
|
||||
limits: Limits,
|
||||
formats: [88]u16,
|
||||
formats: [96]u16,
|
||||
};
|
||||
|
||||
pub const InternalData = extern struct {
|
||||
|
||||
Reference in New Issue
Block a user