Exemplo n.º 1
0
 public GLImage(IGLDeviceImageEntrypoint entrypoint, int textureId, MgImageType imageType, MgFormat format, int width, int height, int depth, int levels, int arrayLayers)
 {
     mEntrypoint = entrypoint;
     mTextureId  = textureId;
     mFormat     = format;
     mImageType  = imageType;
     //mInternalFormat = internalFormat;
     mWidth  = width;
     mHeight = height;
     mDepth  = depth;
     mLevels = levels;
     mLayers = arrayLayers;
     GenerateMipmapLevels();
 }
Exemplo n.º 2
0
        private static MTLTextureType TranslateTextureType(MgImageType imageType)
        {
            switch (imageType)
            {
            case MgImageType.TYPE_1D:
                return(MTLTextureType.k1D);

            case MgImageType.TYPE_2D:
                return(MTLTextureType.k2D);

            case MgImageType.TYPE_3D:
                return(MTLTextureType.k3D);

            default:
                throw new NotSupportedException();
            }
        }
Exemplo n.º 3
0
 public Result GetPhysicalDeviceImageFormatProperties(MgFormat format, MgImageType type, MgImageTiling tiling, MgImageUsageFlagBits usage, MgImageCreateFlagBits flags, out MgImageFormatProperties pImageFormatProperties)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 4
0
 public void GetPhysicalDeviceSparseImageFormatProperties(MgFormat format, MgImageType type, MgSampleCountFlagBits samples, MgImageUsageFlagBits usage, MgImageTiling tiling, out MgSparseImageFormatProperties[] pProperties)
 {
     throw new NotImplementedException();
 }