Package com.mojang.blaze3d.systems
Interface GpuDevice
- All Known Implementing Classes:
GlDevice
public interface GpuDevice
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
createBuffer
(Supplier<String> pLabel, BufferType pType, BufferUsage pUsage, int pSize) createBuffer
(Supplier<String> pLabel, BufferType pType, BufferUsage pUsage, ByteBuffer pBuffer) createTexture
(String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pMipLevels) createTexture
(Supplier<String> pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pMipLevels) int
boolean
default CompiledRenderPipeline
precompilePipeline
(RenderPipeline pPipeline) precompilePipeline
(RenderPipeline pRenderPipeline, BiFunction<ResourceLocation, ShaderType, String> pShaderSource)
-
Method Details
-
createCommandEncoder
CommandEncoder createCommandEncoder() -
createTexture
GpuTexture createTexture(@Nullable Supplier<String> pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pMipLevels) -
createTexture
GpuTexture createTexture(@Nullable String pLabel, TextureFormat pFormat, int pWidth, int pHeight, int pMipLevels) -
createBuffer
GpuBuffer createBuffer(@Nullable Supplier<String> pLabel, BufferType pType, BufferUsage pUsage, int pSize) -
createBuffer
GpuBuffer createBuffer(@Nullable Supplier<String> pLabel, BufferType pType, BufferUsage pUsage, ByteBuffer pBuffer) -
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 pRenderPipeline, @Nullable BiFunction<ResourceLocation, ShaderType, String> pShaderSource) -
clearPipelineCache
void clearPipelineCache() -
getEnabledExtensions
-
close
void close()
-