14 #ifndef MLIR_DIALECT_SPIRV_UTILS_LAYOUTUTILS_H_
15 #define MLIR_DIALECT_SPIRV_UTILS_LAYOUTUTILS_H_
25 class RuntimeArrayType;
75 static Size getScalarTypeAlignment(
Type scalarType);
Instances of the Type class are uniqued, have an immutable identifier and an optional mutable compone...
According to the Vulkan spec "15.6.4. Offset and Stride Assignment": "There are different alignment r...
static bool isLegalType(Type type)
Checks whether a type is legal in terms of Vulkan layout info decoration.
static spirv::StructType decorateType(spirv::StructType structType)
Returns a new StructType with layout decoration.
@ Type
An inlay hint that for a type annotation.
Include the generated interface declarations.