Function isTextureFormatUsableAsStorageFormat

  • Return true if the format can be used as a storage texture. Note: Some formats can be compiled in a shader but can not be used in a pipeline or elsewhere. This function returns whether or not the format can be used in general. If you want to know if the format can used when compiling a shader

    Parameters

    • device: GPUDevice
    • format: GPUTextureFormat

    Returns boolean

Generated using TypeDoc