Class GpuDevice

java.lang.Object
com.mojang.blaze3d.systems.GpuDevice

public class GpuDevice extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • createCommandEncoder

      public CommandEncoder createCommandEncoder()
    • createSampler

      public GpuSampler createSampler(AddressMode addressModeU, AddressMode addressModeV, FilterMode minFilter, FilterMode magFilter, int maxAnisotropy, OptionalDouble maxLod)
    • createTexture

      public GpuTexture createTexture(@Nullable Supplier<String> label, int usage, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels)
    • createTexture

      public GpuTexture createTexture(@Nullable String label, int usage, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels)
    • verifyTextureCreationArgs

      private void verifyTextureCreationArgs(int usage, int width, int height, int depthOrLayers, int mipLevels)
    • createTextureView

      public GpuTextureView createTextureView(GpuTexture texture)
    • createTextureView

      public GpuTextureView createTextureView(GpuTexture texture, int baseMipLevel, int mipLevels)
    • verifyTextureViewCreationArgs

      private void verifyTextureViewCreationArgs(GpuTexture texture, int baseMipLevel, int mipLevels)
    • createBuffer

      public GpuBuffer createBuffer(@Nullable Supplier<String> label, int usage, long size)
    • createBuffer

      public GpuBuffer createBuffer(@Nullable Supplier<String> label, int usage, ByteBuffer data)
    • getImplementationInformation

      public String getImplementationInformation()
    • getLastDebugMessages

      public List<String> getLastDebugMessages()
    • isDebuggingEnabled

      public boolean isDebuggingEnabled()
    • getVendor

      public String getVendor()
    • getBackendName

      public String getBackendName()
    • getVersion

      public String getVersion()
    • getRenderer

      public String getRenderer()
    • getMaxTextureSize

      public int getMaxTextureSize()
    • getUniformOffsetAlignment

      public int getUniformOffsetAlignment()
    • precompilePipeline

      public CompiledRenderPipeline precompilePipeline(RenderPipeline pipeline)
    • precompilePipeline

      public CompiledRenderPipeline precompilePipeline(RenderPipeline pipeline, @Nullable ShaderSource shaderSource)
    • clearPipelineCache

      public void clearPipelineCache()
    • getEnabledExtensions

      public List<String> getEnabledExtensions()
    • getMaxSupportedAnisotropy

      public int getMaxSupportedAnisotropy()
    • close

      public void close()
    • setVsync

      public void setVsync(boolean enabled)
    • presentFrame

      public void presentFrame()
    • isZZeroToOne

      public boolean isZZeroToOne()
    • getBackend

      @Deprecated(forRemoval=true) @Internal public GpuDeviceBackend getBackend()
      Deprecated, for removal: This API element is subject to removal in a future version.