@@ -47,6 +47,7 @@ import {
4747 KHR_SUPERCOMPRESSION_NONE ,
4848 KHR_SUPERCOMPRESSION_ZSTD ,
4949 VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT ,
50+ VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT ,
5051 VK_FORMAT_ASTC_4x4_SRGB_BLOCK ,
5152 VK_FORMAT_ASTC_4x4_UNORM_BLOCK ,
5253 VK_FORMAT_ASTC_6x6_SRGB_BLOCK ,
@@ -953,6 +954,7 @@ const FORMAT_MAP = {
953954 [ VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT ] : RGBA_ASTC_4x4_Format ,
954955 [ VK_FORMAT_ASTC_4x4_SRGB_BLOCK ] : RGBA_ASTC_4x4_Format ,
955956 [ VK_FORMAT_ASTC_4x4_UNORM_BLOCK ] : RGBA_ASTC_4x4_Format ,
957+ [ VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT ] : RGBA_ASTC_6x6_Format ,
956958 [ VK_FORMAT_ASTC_6x6_SRGB_BLOCK ] : RGBA_ASTC_6x6_Format ,
957959 [ VK_FORMAT_ASTC_6x6_UNORM_BLOCK ] : RGBA_ASTC_6x6_Format ,
958960
@@ -996,6 +998,7 @@ const TYPE_MAP = {
996998 [ VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK ] : UnsignedByteType ,
997999
9981000 [ VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT ] : HalfFloatType ,
1001+ [ VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT ] : HalfFloatType ,
9991002 [ VK_FORMAT_ASTC_6x6_SRGB_BLOCK ] : UnsignedByteType ,
10001003 [ VK_FORMAT_ASTC_6x6_UNORM_BLOCK ] : UnsignedByteType ,
10011004
@@ -1007,7 +1010,7 @@ async function createRawTexture( container ) {
10071010
10081011 if ( FORMAT_MAP [ vkFormat ] === undefined ) {
10091012
1010- throw new Error ( 'THREE.KTX2Loader: Unsupported vkFormat.' ) ;
1013+ throw new Error ( 'THREE.KTX2Loader: Unsupported vkFormat: ' + vkFormat ) ;
10111014
10121015 }
10131016
0 commit comments