Function isTextureFormatUsableWithStorageAccessMode

  • Return true if the format can be used with the given access mode access can be either GPUStorageTextureAccess or WGSL access 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
    • access: GPUStorageTextureAccess | "write" | "read" | "read_write"

    Returns boolean

Generated using TypeDoc