123456789101112131415161718192021222324252627 |
- import { sourceTextureFormat, transcodeTarget } from '../transcoder';
- import { LiteTranscoder } from './liteTranscoder';
- /**
- * @hidden
- */
- export class LiteTranscoder_UASTC_ASTC extends LiteTranscoder {
- /**
- * URL to use when loading the wasm module for the transcoder
- */
- public static WasmModuleURL = "https://preview.babylonjs.com/ktx2Transcoders/uastc_astc.wasm";
- public static CanTranscode(src: sourceTextureFormat, dst: transcodeTarget, isInGammaSpace: boolean): boolean {
- return src === sourceTextureFormat.UASTC4x4 && dst === transcodeTarget.ASTC_4x4_RGBA;
- }
- public static Name = "UniversalTranscoder_UASTC_ASTC";
- public getName(): string {
- return LiteTranscoder_UASTC_ASTC.Name;
- }
- public initialize(): void {
- super.initialize();
- this.setModulePath(LiteTranscoder_UASTC_ASTC.WasmModuleURL);
- }
- }
|