llpc/builder/llpcBuilder.h
// Get the number of coordinates for the specified dimension argument.
Get the number of coordinates for the specified dimension argument.
Get the number of coordinates for the specified dimension argument .
static uint32_t GetImageNumCoords(
        uint32_t dim)   
    {
        switch (dim)
        {
        case Dim1D: return 1;
        case Dim2D: return 2;
        case Dim3D: return 3;
        case DimCube: return 3;
        case Dim1DArray: return 2;
        case Dim2DArray: return 3;
        case Dim2DMsaa: return 3;
        case Dim2DArrayMsaa: return 4;
        case DimCubeArray: return 4;
        }
        llvm_unreachable("Should never be called!");
        return 0;
    }
static uint32_t GetImageNumCoords ( uint32_t dim ) { switch ( dim ) { case Dim1D : return 1 ; case Dim2D : return 2 ; case Dim3D : return 3 ; case DimCube : return 3 ; case Dim1DArray : return 2 ; case Dim2DArray : return 3 ; case Dim2DMsaa : return 3 ; case Dim2DArrayMsaa : return 4 ; case DimCubeArray : return 4 ; } llvm_unreachable ( " " ) ; return 0 ; }
Get the number of coordinates for the specified dimension argument.
Get the number of coordinates for the specified dimension argument .
// Image dimension