Variable kScalarTypeInfoConst

kScalarTypeInfo: {
    bool: {
        arrayLength: 1;
        innerLength: 0;
        layout: undefined;
        supportsAtomics: false;
    };
    f16: {
        arrayLength: 1;
        feature: "shader-f16";
        innerLength: 0;
        layout: {
            alignment: 2;
            size: 2;
        };
        supportsAtomics: false;
    };
    f32: {
        arrayLength: 1;
        innerLength: 0;
        layout: {
            alignment: 4;
            size: 4;
        };
        supportsAtomics: false;
    };
    i32: {
        arrayLength: 1;
        innerLength: 0;
        layout: {
            alignment: 4;
            size: 4;
        };
        supportsAtomics: true;
    };
    u32: {
        arrayLength: 1;
        innerLength: 0;
        layout: {
            alignment: 4;
            size: 4;
        };
        supportsAtomics: true;
    };
} = ...

Info for each plain scalar type.

Type declaration

  • Readonly bool: {
        arrayLength: 1;
        innerLength: 0;
        layout: undefined;
        supportsAtomics: false;
    }
    • Readonly arrayLength: 1
    • Readonly innerLength: 0
    • Readonly layout: undefined
    • Readonly supportsAtomics: false
  • Readonly f16: {
        arrayLength: 1;
        feature: "shader-f16";
        innerLength: 0;
        layout: {
            alignment: 2;
            size: 2;
        };
        supportsAtomics: false;
    }
    • Readonly arrayLength: 1
    • Readonly feature: "shader-f16"
    • Readonly innerLength: 0
    • Readonly layout: {
          alignment: 2;
          size: 2;
      }
      • Readonly alignment: 2
      • Readonly size: 2
    • Readonly supportsAtomics: false
  • Readonly f32: {
        arrayLength: 1;
        innerLength: 0;
        layout: {
            alignment: 4;
            size: 4;
        };
        supportsAtomics: false;
    }
    • Readonly arrayLength: 1
    • Readonly innerLength: 0
    • Readonly layout: {
          alignment: 4;
          size: 4;
      }
      • Readonly alignment: 4
      • Readonly size: 4
    • Readonly supportsAtomics: false
  • Readonly i32: {
        arrayLength: 1;
        innerLength: 0;
        layout: {
            alignment: 4;
            size: 4;
        };
        supportsAtomics: true;
    }
    • Readonly arrayLength: 1
    • Readonly innerLength: 0
    • Readonly layout: {
          alignment: 4;
          size: 4;
      }
      • Readonly alignment: 4
      • Readonly size: 4
    • Readonly supportsAtomics: true
  • Readonly u32: {
        arrayLength: 1;
        innerLength: 0;
        layout: {
            alignment: 4;
            size: 4;
        };
        supportsAtomics: true;
    }
    • Readonly arrayLength: 1
    • Readonly innerLength: 0
    • Readonly layout: {
          alignment: 4;
          size: 4;
      }
      • Readonly alignment: 4
      • Readonly size: 4
    • Readonly supportsAtomics: true

Generated using TypeDoc