Class GpuDevice
java.lang.Object
com.mojang.blaze3d.systems.GpuDevice
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()createBuffer(@Nullable Supplier<String> label, int usage, long size) createBuffer(@Nullable Supplier<String> label, int usage, ByteBuffer data) createSampler(AddressMode addressModeU, AddressMode addressModeV, FilterMode minFilter, FilterMode magFilter, int maxAnisotropy, OptionalDouble maxLod) createTexture(@Nullable String label, int usage, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels) createTexture(@Nullable Supplier<String> label, int usage, TextureFormat format, int width, int height, int depthOrLayers, int mipLevels) createTextureView(GpuTexture texture) createTextureView(GpuTexture texture, int baseMipLevel, int mipLevels) Deprecated, for removal: This API element is subject to removal in a future version.intintintbooleanbooleanprecompilePipeline(RenderPipeline pipeline) precompilePipeline(RenderPipeline pipeline, @Nullable ShaderSource shaderSource) voidvoidsetVsync(boolean enabled) private voidverifyTextureCreationArgs(int usage, int width, int height, int depthOrLayers, int mipLevels) private voidverifyTextureViewCreationArgs(GpuTexture texture, int baseMipLevel, int mipLevels)
-
Field Details
-
backend
-
-
Constructor Details
-
GpuDevice
-
-
Method Details
-
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
-
createTextureView
-
verifyTextureViewCreationArgs
-
createBuffer
-
createBuffer
-
getImplementationInformation
-
getLastDebugMessages
-
isDebuggingEnabled
public boolean isDebuggingEnabled() -
getVendor
-
getBackendName
-
getVersion
-
getRenderer
-
getMaxTextureSize
public int getMaxTextureSize() -
getUniformOffsetAlignment
public int getUniformOffsetAlignment() -
precompilePipeline
-
precompilePipeline
public CompiledRenderPipeline precompilePipeline(RenderPipeline pipeline, @Nullable ShaderSource shaderSource) -
clearPipelineCache
public void clearPipelineCache() -
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, for removal: This API element is subject to removal in a future version.
-