Class GpuTexture

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

@Environment(CLIENT) public abstract class GpuTexture extends Object implements AutoCloseable
Mappings:
Namespace Name
named com/mojang/blaze3d/textures/GpuTexture
intermediary com/mojang/blaze3d/textures/GpuTexture
official com/mojang/blaze3d/textures/GpuTexture
  • 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:
    • 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.class_12115 int usage
    • label

      private final String label
  • Constructor Details

    • GpuTexture

      public GpuTexture(int usage, String label, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lcom/mojang/blaze3d/textures/GpuTexture;<init>(ILjava/lang/String;Lcom/mojang/blaze3d/textures/TextureFormat;IIII)V
      intermediary <init> Lcom/mojang/blaze3d/textures/GpuTexture;<init>(ILjava/lang/String;Lcom/mojang/blaze3d/textures/TextureFormat;IIII)V
      official <init> Lcom/mojang/blaze3d/textures/GpuTexture;<init>(ILjava/lang/String;Lcom/mojang/blaze3d/textures/TextureFormat;IIII)V
  • Method Details

    • getWidth

      public int getWidth(int mipLevel)
      Mappings:
      Namespace Name Mixin selector
      named getWidth Lcom/mojang/blaze3d/textures/GpuTexture;getWidth(I)I
      intermediary getWidth Lcom/mojang/blaze3d/textures/GpuTexture;getWidth(I)I
      official getWidth Lcom/mojang/blaze3d/textures/GpuTexture;getWidth(I)I
    • getHeight

      public int getHeight(int mipLevel)
      Mappings:
      Namespace Name Mixin selector
      named getHeight Lcom/mojang/blaze3d/textures/GpuTexture;getHeight(I)I
      intermediary getHeight Lcom/mojang/blaze3d/textures/GpuTexture;getHeight(I)I
      official getHeight Lcom/mojang/blaze3d/textures/GpuTexture;getHeight(I)I
    • getDepthOrLayers

      public int getDepthOrLayers()
    • getMipLevels

      public int getMipLevels()
    • getFormat

      public TextureFormat getFormat()
    • usage

      public int usage()
    • getLabel

      public String getLabel()
    • close

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

      public abstract boolean isClosed()