Package com.mojang.blaze3d.systems
Interface GpuDevice
- All Known Implementing Classes:
GlDevice
public interface GpuDevice
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()createBuffer(Supplier<String> label, BufferType type, BufferUsage usage, int size) createBuffer(Supplier<String> label, BufferType type, BufferUsage usage, ByteBuffer buffer) createTexture(String label, TextureFormat format, int width, int height, int mipLevels) createTexture(Supplier<String> label, TextureFormat format, int width, int height, int mipLevels) intbooleandefault CompiledRenderPipelineprecompilePipeline(RenderPipeline pipeline) precompilePipeline(RenderPipeline renderPipeline, BiFunction<ResourceLocation, ShaderType, String> shaderSource)
-
Method Details
-
createCommandEncoder
CommandEncoder createCommandEncoder() -
createTexture
GpuTexture createTexture(@Nullable Supplier<String> label, TextureFormat format, int width, int height, int mipLevels) -
createTexture
GpuTexture createTexture(@Nullable String label, TextureFormat format, int width, int height, int mipLevels) -
createBuffer
GpuBuffer createBuffer(@Nullable Supplier<String> label, BufferType type, BufferUsage usage, int size) -
createBuffer
GpuBuffer createBuffer(@Nullable Supplier<String> label, BufferType type, BufferUsage usage, ByteBuffer buffer) -
getImplementationInformation
String getImplementationInformation() -
getLastDebugMessages
-
isDebuggingEnabled
boolean isDebuggingEnabled() -
getVendor
String getVendor() -
getBackendName
String getBackendName() -
getVersion
String getVersion() -
getRenderer
String getRenderer() -
getMaxTextureSize
int getMaxTextureSize() -
precompilePipeline
-
precompilePipeline
CompiledRenderPipeline precompilePipeline(RenderPipeline renderPipeline, @Nullable BiFunction<ResourceLocation, ShaderType, String> shaderSource) -
clearPipelineCache
void clearPipelineCache() -
getEnabledExtensions
-
close
void close()
-