Function isTextureFormatUsableAsStorageFormatInCreateShaderModule

  • Returns true if format can be used with createShaderModule on the device. Some formats may require a feature to be enabled before they can be used as a storage texture. Others, can't be used in a pipeline but can be compiled in a shader. Examples are rg32float, rg32uint, rg32sint which are not usable in compat mode but shaders can be compiled. Similarly, bgra8unorm can be compiled but can't be used in a pipeline unless feature 'bgra8unorm-storage' is available.

    Parameters

    • device: GPUDevice
    • format: GPUTextureFormat

    Returns boolean

Generated using TypeDoc