net.minecraft.client.vulkan

public class VulkanBackend

implements GpuBackend

com.mojang.blaze3d.vulkan.VulkanDevice
com.mojang.blaze3d.vulkan.VulkanDevice
net.minecraft.class_1_679
net.minecraft.client.vulkan.VulkanBackend

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
LOGGER
field_1_3436
LOGGER
private final ShaderSourceGetter
defaultShaderSource
defaultShaderSource
field_1_3439
shaderSourceGetter
private final Map<RenderPipeline, VulkanCompiledRenderPipeline>
pipelineCache
pipelineCache
field_1_3445
pipelineCompileCache
private final Map<VulkanBackend$ShaderKey, SpirvShader>
shaderCache
shaderCache
field_1_3446
shaderCompileCache
private final VulkanInstance
instance
instance
field_1_3443
instance
private final org.lwjgl.vulkan.VkDevice
vkDevice
vkDevice
field_1_3448
device
private final long
vma
vma
field_1_3449
vmaAllocator
private final SpirvShaderCompiler
glslCompiler
glslCompiler
field_1_3441
shaderCompiler
private final GpuDeviceInfo
deviceInfo
deviceInfo
field_1_3440
deviceInfo
private final VulkanQueue
graphicsQueue
graphicsQueue
field_1_3442
graphicsAndComputeQueue
private final VulkanQueue
computeQueue
computeQueue
field_1_3438
computeQueue
private final VulkanQueue
transferQueue
transferQueue
field_1_3447
fallbackQueue
private final boolean
isIntegratedIntelMoltenVK
isIntegratedIntelMoltenVK
field_1_3444
requiresHostVisibleBuffers
private final VulkanCommandEncoderBackend
commandEncoder
commandEncoder
field_1_3437
commandEncoder
private final MarkerRecorder
checkpointExtension
checkpointExtension
field_1_6395
markerRecorder

Constructor summary

ModifierConstructor
public (ShaderSourceGetter shaderSoruceGetter, VulkanInstance instance, VulkanPhysicalDevice physicalDevice, Set<String> extensions, org.lwjgl.vulkan.VkDevice device, long vmaAllocator, MarkerRecorder markerRecorder)

Method summary

Modifier and TypeMethod
public void
close()
close()
method_1_1285()
close()
public GpuDeviceInfo
getDeviceInfo()
getDeviceInfo()
method_1_4221()
getDeviceInfo()
public VulkanInstance
instance()
instance()
method_1_4053()
getInstance()
public org.lwjgl.vulkan.VkDevice
vkDevice()
vkDevice()
method_1_4058()
getRawDevice()
public VulkanQueue
graphicsQueue()
graphicsQueue()
method_1_4052()
getGraphicsAndComputeQueue()
public VulkanQueue
computeQueue()
computeQueue()
method_1_4048()
getComputeQueue()
public VulkanQueue
transferQueue()
transferQueue()
method_1_4057()
getFallbackQueue()
public long
vma()
vma()
method_1_4059()
getVmaAllocator()
public GpuSurfaceBackend
createSurface(long windowHandle)
createSurface(long windowHandle)
method_1_4219(long arg0)
createSurface(long arg0)
public VulkanCommandEncoderBackend
createCommandEncoder()
createCommandEncoder()
method_1_1288()
getCommandEncoder()
public GpuSampler
createSampler(AddressMode addressModeU, AddressMode addressModeV, FilterMode minFilter, FilterMode magFilter, int maxAnisotropy, OptionalDouble maxLod)
createSampler(AddressMode addressModeU, AddressMode addressModeV, FilterMode minFilter, FilterMode magFilter, int maxAnisotropy, OptionalDouble maxLod)
method_1_1289(com.mojang.blaze3d.textures.AddressMode arg0, com.mojang.blaze3d.textures.AddressMode arg1, com.mojang.blaze3d.textures.FilterMode arg2, com.mojang.blaze3d.textures.FilterMode arg3, int arg4, OptionalDouble arg5)
createSampler(com.mojang.blaze3d.textures.AddressMode arg0, com.mojang.blaze3d.textures.AddressMode arg1, com.mojang.blaze3d.textures.FilterMode arg2, com.mojang.blaze3d.textures.FilterMode arg3, int arg4, OptionalDouble arg5)
public GpuTexture
createTexture(Supplier<String> label, int usage, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels)
createTexture(Supplier<String> label, int usage, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels)
method_1_1291(Supplier<String> arg0, int arg1, class_1_658 arg2, int arg3, int arg4, int arg5, int arg6)
createTexture(Supplier<String> arg0, int arg1, TexelFormat arg2, int arg3, int arg4, int arg5, int arg6)
public GpuTexture
createTexture(String label, int usage, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels)
createTexture(String label, int usage, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels)
method_1_1290(String arg0, int arg1, class_1_658 arg2, int arg3, int arg4, int arg5, int arg6)
createTexture(String arg0, int arg1, TexelFormat arg2, int arg3, int arg4, int arg5, int arg6)
public GpuTextureView
createTextureView(GpuTexture texture)
createTextureView(GpuTexture texture)
method_1_1292(GpuTexture arg0)
createTextureView(GpuTexture arg0)
public GpuTextureView
createTextureView(GpuTexture texture, int baseMipLevel, int mipLevels)
createTextureView(GpuTexture texture, int baseMipLevel, int mipLevels)
method_1_1293(GpuTexture arg0, int arg1, int arg2)
createTextureView(GpuTexture arg0, int arg1, int arg2)
public VulkanGpuBuffer
createBuffer(Supplier<String> label, int usage, long size)
createBuffer(Supplier<String> label, int usage, long size)
method_1_1286(Supplier<String> arg0, int arg1, long arg2)
createBuffer(Supplier<String> arg0, int arg1, long arg2)
public GpuBuffer
createBuffer(Supplier<String> label, int usage, ByteBuffer data)
createBuffer(Supplier<String> label, int usage, ByteBuffer data)
method_1_1287(Supplier<String> arg0, int arg1, ByteBuffer arg2)
createBuffer(Supplier<String> arg0, int arg1, ByteBuffer arg2)
public List<String>
getLastDebugMessages()
getLastDebugMessages()
method_1_1297()
getLastDebugMessages()
public boolean
isDebuggingEnabled()
isDebuggingEnabled()
method_1_1304()
isDebuggingEnabled()
public CompiledRenderPipeline
precompilePipeline(RenderPipeline pipeline, ShaderSource customShaderSource)
precompilePipeline(RenderPipeline pipeline, ShaderSource customShaderSource)
method_1_1306(RenderPipeline arg0, class_12289 arg1)
getCompiledPipeline(RenderPipeline arg0, ShaderSourceGetter arg1)
protected VulkanCompiledRenderPipeline
getOrCompilePipeline(RenderPipeline pipeline)
getOrCompilePipeline(RenderPipeline pipeline)
method_1_4050(RenderPipeline arg0)
getCompiledPipeline(RenderPipeline pipeline)
protected SpirvShader
getOrCompileShader(Identifier id, ShaderType type, ShaderDefines defines, ShaderSource shaderSource)
getOrCompileShader(Identifier id, ShaderType type, ShaderDefines defines, ShaderSource shaderSource)
method_1_4051(class_2960 arg0, ShaderType arg1, class_10149 arg2, class_12289 arg3)
getCompiledShader(Identifier id, ShaderType shaderType, Defines defines, ShaderSourceGetter sourceGetter)
private SpirvShader
compileShader(VulkanDevice$ShaderCompilationKey key, ShaderSource shaderSource)
compileShader(VulkanDevice$ShaderCompilationKey key, ShaderSource shaderSource)
method_1_4047(class_1_679$class_1_680 arg0, class_12289 arg1)
compileShader(VulkanBackend$ShaderKey key, ShaderSourceGetter sourceGetter)
private VulkanCompiledRenderPipeline
compilePipeline(RenderPipeline pipeline, ShaderSource shaderSource)
compilePipeline(RenderPipeline pipeline, ShaderSource shaderSource)
method_1_4046(RenderPipeline arg0, class_12289 arg1)
compileRenderPipeline(RenderPipeline pipeline, ShaderSourceGetter sourceGetter)
public void
clearPipelineCache()
clearPipelineCache()
method_1_1284()
clearPipelineCache()
public TimestampQueryPool
createTimestampQueryPool(int size)
createTimestampQueryPool(int size)
method_1_4220(int arg0)
createTimestampQueryPool(int arg0)
public long
getTimestampNow()
getTimestampNow()
method_1_4222()
getTimestampNow()
public MarkerRecorder
checkpointExtension()
checkpointExtension()
method_1_5492()
getMarkerRecorder()