Class VulkanRenderPipeline

java.lang.Object
com.mojang.renderpearl.backend.vulkan.VulkanRenderPipeline
All Implemented Interfaces:
BackendRenderPipeline, Destroyable, UncheckedAutoCloseable, AutoCloseable

public final class VulkanRenderPipeline extends Object implements BackendRenderPipeline, Destroyable
  • Field Details

    • device

      private final VulkanDevice device
    • withStencilPipeline

      private final long withStencilPipeline
    • withDepthStencilPipeline

      private final long withDepthStencilPipeline
    • withDepthPipeline

      private final long withDepthPipeline
    • withoutDepthPipeline

      private final long withoutDepthPipeline
    • pipelineLayout

      private final long pipelineLayout
    • descriptorSetLayout

      private final long descriptorSetLayout
    • shaderModules

      private final it.unimi.dsi.fastutil.longs.LongList shaderModules
    • uniforms

      private final List<BindGroupLayout.UniformDescription> uniforms
    • closed

      private boolean closed
  • Constructor Details

    • VulkanRenderPipeline

      public VulkanRenderPipeline(VulkanDevice device, long withStencilPipeline, long withDepthStencilPipeline, long withDepthPipeline, long withoutDepthPipeline, long pipelineLayout, long descriptorSetLayout, it.unimi.dsi.fastutil.longs.LongList shaderModules, List<BindGroupLayout.UniformDescription> uniforms)
  • Method Details

    • isClosed

      public boolean isClosed()
      Specified by:
      isClosed in interface BackendRenderPipeline
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface UncheckedAutoCloseable
    • compile

      public static VulkanRenderPipeline compile(VulkanDevice device, BackendRenderPipeline.CreateInfo pipelineCreateInfo)
    • destroy

      public void destroy()
      Specified by:
      destroy in interface Destroyable
    • applyBlendInformation

      private static void applyBlendInformation(org.lwjgl.vulkan.VkPipelineColorBlendAttachmentState.Buffer blendAttachments, BlendFunction blendFunction)
    • device

      public VulkanDevice device()
    • withStencilPipeline

      public long withStencilPipeline()
      Neo: Returns the stencil-aware pipeline.
      Returns:
      the stencil-aware pipeline
    • withDepthStencilPipeline

      public long withDepthStencilPipeline()
      Neo: Returns the depth and stencil aware pipeline.
      Returns:
      the depth and stencil aware pipeline
    • withDepthPipeline

      public long withDepthPipeline()
    • withoutDepthPipeline

      public long withoutDepthPipeline()
    • pipelineLayout

      public long pipelineLayout()
    • uniforms