• Gets the block width, height, and bytes per block for a color texture format. Note that bytesPerBlock will be undefined if format's size is undefined. If you are only using color or encodable formats,

    Parameters

    • format: GPUTextureFormat

    Returns {
        blockHeight: 1 | 4 | 5 | 6 | 8 | 10 | 12;
        blockWidth: 1 | 4 | 5 | 6 | 8 | 10 | 12;
        bytesPerBlock: undefined | 1 | 2 | 4 | 8 | 16;
    }

    • blockHeight: 1 | 4 | 5 | 6 | 8 | 10 | 12
    • blockWidth: 1 | 4 | 5 | 6 | 8 | 10 | 12
    • bytesPerBlock: undefined | 1 | 2 | 4 | 8 | 16

Generated using TypeDoc