Class MTLTexture

    • Constructor Detail

      • MTLTexture

        public MTLTexture()
    • Method Detail

      • getRootResource

        @Deprecated
        public MTLResource getRootResource()
        Deprecated.
        Deprecated in iOS 10.0. Use parentTexture or buffer instead
        Since:
        Available in iOS 8.0 and later.
      • getParentTexture

        public MTLTexture getParentTexture()
        Since:
        Available in iOS 9.0 and later.
      • getParentRelativeLevel

        public long getParentRelativeLevel()
        Since:
        Available in iOS 9.0 and later.
      • getParentRelativeSlice

        public long getParentRelativeSlice()
        Since:
        Available in iOS 9.0 and later.
      • getBuffer

        public MTLBuffer getBuffer()
        Since:
        Available in iOS 9.0 and later.
      • getBufferOffset

        public long getBufferOffset()
        Since:
        Available in iOS 9.0 and later.
      • getBufferBytesPerRow

        public long getBufferBytesPerRow()
        Since:
        Available in iOS 9.0 and later.
      • getIosurface

        public IOSurface getIosurface()
        Since:
        Available in iOS 11.0 and later.
      • getIosurfacePlane

        public long getIosurfacePlane()
        Since:
        Available in iOS 11.0 and later.
      • getWidth

        public long getWidth()
      • getHeight

        public long getHeight()
      • getDepth

        public long getDepth()
      • getMipmapLevelCount

        public long getMipmapLevelCount()
      • getSampleCount

        public long getSampleCount()
      • getArrayLength

        public long getArrayLength()
      • isFramebufferOnly

        public boolean isFramebufferOnly()
      • isAllowGPUOptimizedContents

        public boolean isAllowGPUOptimizedContents()
        Since:
        Available in iOS 12.0 and later.
      • getLabel

        public java.lang.String getLabel()
        Specified by:
        getLabel in interface MTLResource
      • setLabel

        public void setLabel​(java.lang.String v)
        Specified by:
        setLabel in interface MTLResource
      • getHeap

        public MTLHeap getHeap()
        Specified by:
        getHeap in interface MTLResource
        Since:
        Available in iOS 10.0 and later.
      • getAllocatedSize

        public long getAllocatedSize()
        Specified by:
        getAllocatedSize in interface MTLResource
        Since:
        Available in iOS 11.0 and later.
      • getBytes

        public byte[] getBytes​(int length,
                               long bytesPerRow,
                               long bytesPerImage,
                               MTLRegion region,
                               long level,
                               long slice)
      • replaceRegion

        public void replaceRegion​(MTLRegion region,
                                  long level,
                                  long slice,
                                  byte[] pixelBytes,
                                  long bytesPerRow,
                                  long bytesPerImage)
      • getBytes

        public byte[] getBytes​(int length,
                               long bytesPerRow,
                               MTLRegion region,
                               long level)
      • replaceRegion

        public void replaceRegion​(MTLRegion region,
                                  long level,
                                  byte[] pixelBytes,
                                  long bytesPerRow)
      • getBytes

        protected void getBytes​(long pixelBytes,
                                long bytesPerRow,
                                long bytesPerImage,
                                MTLRegion region,
                                long level,
                                long slice)
      • replaceRegion

        protected void replaceRegion​(MTLRegion region,
                                     long level,
                                     long slice,
                                     long pixelBytes,
                                     long bytesPerRow,
                                     long bytesPerImage)
      • getBytes

        protected void getBytes​(long pixelBytes,
                                long bytesPerRow,
                                MTLRegion region,
                                long level)
      • replaceRegion

        protected void replaceRegion​(MTLRegion region,
                                     long level,
                                     long pixelBytes,
                                     long bytesPerRow)
      • makeAliasable

        public void makeAliasable()
        Specified by:
        makeAliasable in interface MTLResource
        Since:
        Available in iOS 10.0 and later.
      • isAliasable

        public boolean isAliasable()
        Specified by:
        isAliasable in interface MTLResource
        Since:
        Available in iOS 10.0 and later.