Class GpuTexture

java.lang.Object
com.mojang.blaze3d.textures.GpuTexture
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
GlTexture, ValidationGpuTexture

public abstract class GpuTexture extends Object implements AutoCloseable
  • Field Details

    • USAGE_COPY_DST

      public static final int USAGE_COPY_DST
      See Also:
    • USAGE_COPY_SRC

      public static final int USAGE_COPY_SRC
      See Also:
    • USAGE_TEXTURE_BINDING

      public static final int USAGE_TEXTURE_BINDING
      See Also:
    • USAGE_RENDER_ATTACHMENT

      public static final int USAGE_RENDER_ATTACHMENT
      See Also:
    • USAGE_CUBEMAP_COMPATIBLE

      public static final int USAGE_CUBEMAP_COMPATIBLE
      See Also:
    • RESERVED_USAGE_BITS

      public static final int RESERVED_USAGE_BITS
      Neo: These bits are reserved for alternate backend specific uses
      See Also:
    • format

      private final TextureFormat format
    • width

      private final int width
    • height

      private final int height
    • depthOrLayers

      private final int depthOrLayers
    • mipLevels

      private final int mipLevels
    • usage

      private final @com.mojang.blaze3d.textures.GpuTexture.Usage int usage
    • label

      private final String label
  • Constructor Details

    • GpuTexture

      public GpuTexture(@com.mojang.blaze3d.textures.GpuTexture.Usage int pUsage, String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pDepthOrLayers, int pMipLevels)
  • Method Details

    • getWidth

      public int getWidth(int pMipLevel)
    • getHeight

      public int getHeight(int pMipLevel)
    • getDepthOrLayers

      public int getDepthOrLayers()
    • getMipLevels

      public int getMipLevels()
    • getFormat

      public TextureFormat getFormat()
    • usage

      public @com.mojang.blaze3d.textures.GpuTexture.Usage int usage()
    • getLabel

      public String getLabel()
    • close

      public abstract void close()
      Specified by:
      close in interface AutoCloseable
    • isClosed

      public abstract boolean isClosed()