Skip to content

Commit

Permalink
Micro-optimize $GPUTextureAndVertexFormats compression
Browse files Browse the repository at this point in the history
  • Loading branch information
juj committed Aug 19, 2022
1 parent 69638b6 commit 4aa7bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lib_webgpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ mergeInto(LibraryManager.library, {

$GPUTextureAndVertexFormats__deps: ['$wgpuDecodeStrings'],
//$GPUTextureAndVertexFormats: [undefined (0), 'r8unorm' (1), 'r8snorm' (2), 'r8uint' (3), 'r8sint' (4), 'r16uint' (5), 'r16sint' (6), 'r16float' (7), 'rg8unorm' (8), 'rg8snorm' (9), 'rg8uint' (10), 'rg8sint' (11), 'r32uint' (12), 'r32sint' (13), 'r32float' (14), 'rg16uint' (15), 'rg16sint' (16), 'rg16float' (17), 'rgba8unorm' (18), 'rgba8unorm-srgb' (19), 'rgba8snorm' (20), 'rgba8uint' (21), 'rgba8sint' (22), 'bgra8unorm' (23), 'bgra8unorm-srgb' (24), 'rgb9e5ufloat' (25), 'rgb10a2unorm' (26), 'rg11b10ufloat' (27), 'rg32uint' (28), 'rg32sint' (29), 'rg32float' (30), 'rgba16uint' (31), 'rgba16sint' (32), 'rgba16float' (33), 'rgba32uint' (34), 'rgba32sint' (35), 'rgba32float' (36), 'stencil8' (37), 'depth16unorm' (38), 'depth24plus' (39), 'depth24plus-stencil8' (40), 'depth32float' (41), 'depth32float-stencil8' (42), 'bc1-rgba-unorm' (43), 'bc1-rgba-unorm-srgb' (44), 'bc2-rgba-unorm' (45), 'bc2-rgba-unorm-srgb' (46), 'bc3-rgba-unorm' (47), 'bc3-rgba-unorm-srgb' (48), 'bc4-r-unorm' (49), 'bc4-r-snorm' (50), 'bc5-rg-unorm' (51), 'bc5-rg-snorm' (52), 'bc6h-rgb-ufloat' (53), 'bc6h-rgb-float' (54), 'bc7-rgba-unorm' (55), 'bc7-rgba-unorm-srgb' (56), 'etc2-rgb8unorm' (57), 'etc2-rgb8unorm-srgb' (58), 'etc2-rgb8a1unorm' (59), 'etc2-rgb8a1unorm-srgb' (60), 'etc2-rgba8unorm' (61), 'etc2-rgba8unorm-srgb' (62), 'eac-r11unorm' (63), 'eac-r11snorm' (64), 'eac-rg11unorm' (65), 'eac-rg11snorm' (66), 'astc-4x4-unorm' (67), 'astc-4x4-unorm-srgb' (68), 'astc-5x4-unorm' (69), 'astc-5x4-unorm-srgb' (70), 'astc-5x5-unorm' (71), 'astc-5x5-unorm-srgb' (72), 'astc-6x5-unorm' (73), 'astc-6x5-unorm-srgb' (74), 'astc-6x6-unorm' (75), 'astc-6x6-unorm-srgb' (76), 'astc-8x5-unorm' (77), 'astc-8x5-unorm-srgb' (78), 'astc-8x6-unorm' (79), 'astc-8x6-unorm-srgb' (80), 'astc-8x8-unorm' (81), 'astc-8x8-unorm-srgb' (82), 'astc-10x5-unorm' (83), 'astc-10x5-unorm-srgb' (84), 'astc-10x6-unorm' (85), 'astc-10x6-unorm-srgb' (86), 'astc-10x8-unorm' (87), 'astc-10x8-unorm-srgb' (88), 'astc-10x10-unorm' (89), 'astc-10x10-unorm-srgb' (90), 'astc-12x10-unorm' (91), 'astc-12x10-unorm-srgb' (92), 'astc-12x12-unorm' (93), 'astc-12x12-unorm-srgb' (94), 'uint8x2' (95), 'uint8x4' (96), 'sint8x2' (97), 'sint8x4' (98), 'unorm8x2' (99), 'unorm8x4' (100), 'snorm8x2' (101), 'snorm8x4' (102), 'uint16x2' (103), 'uint16x4' (104), 'sint16x2' (105), 'sint16x4' (106), 'unorm16x2' (107), 'unorm16x4' (108), 'snorm16x2' (109), 'snorm16x4' (110), 'float16x2' (111), 'float16x4' (112), 'float32' (113), 'float32x2' (114), 'float32x3' (115), 'float32x4' (116), 'uint32' (117), 'uint32x2' (118), 'uint32x3' (119), 'uint32x4' (120), 'sint32' (121), 'sint32x2' (122), 'sint32x3' (123), 'sint32x4' (124)],
$GPUTextureAndVertexFormats: "wgpuDecode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W8ZI11YI11RmIg11YIg11RmX4x4-YX4x4-ZX5x4-YX5x4-ZX5x5-YX5x5-ZX6x5-YX6x5-ZX6x6-YX6x6-ZX8x5-YX8x5-ZX8x6-YX8x6-ZX8x8-YX8x8-ZXE5-YXE5-ZXE6-YXE6-ZXE8-YXE8-ZXE10-YXE10-ZX12x10-YX12x10-ZX12x12-YX12x12-Z U8MU8KT8MT8KY8MY8KRm8MRm8KUHMUHKTHMTHKYHMYHKRmHMRmHKVHMVHKVL VLMVLx3 VLKUL ULMULx3 ULKTL TLMTLx3 TLx4', 'unorm-srgb|unorm| astc-|rgba|float|uint|sint| etc2-rgb8|snor| bc|-BC| rg|-AC|x2 |32|x4 | depth| eac-r|16|stencil8|-D-BJ|10x| D|Im|-D-AJ| r')",

wgpu32BitLimitNames__deps: ['$wgpuDecodeStrings'],
//wgpu32BitLimitNames: ['maxTextureDimension1D' (0), 'maxTextureDimension2D' (1), 'maxTextureDimension3D' (2), 'maxTextureArrayLayers' (3), 'maxBindGroups' (4), 'maxDynamicUniformBuffersPerPipelineLayout' (5), 'maxDynamicStorageBuffersPerPipelineLayout' (6), 'maxSampledTexturesPerShaderStage' (7), 'maxSamplersPerShaderStage' (8), 'maxStorageBuffersPerShaderStage' (9), 'maxStorageTexturesPerShaderStage' (10), 'maxUniformBuffersPerShaderStage' (11), 'minUniformBufferOffsetAlignment' (12), 'minStorageBufferOffsetAlignment' (13), 'maxVertexBuffers' (14), 'maxVertexAttributes' (15), 'maxVertexBufferArrayStride' (16), 'maxInterStageShaderComponents' (17), 'maxInterStageShaderVariables' (18), 'maxColorAttachments' (19), 'maxComputeWorkgroupStorageSize' (20), 'maxComputeInvocationsPerWorkgroup' (21), 'maxComputeWorkgroupSizeX' (22), 'maxComputeWorkgroupSizeY' (23), 'maxComputeWorkgroupSizeZ' (24)],
Expand Down

0 comments on commit 4aa7bd0

Please sign in to comment.