Record Class VulkanRenderPipeline
java.lang.Object
java.lang.Record
com.mojang.blaze3d.vulkan.VulkanRenderPipeline
- All Implemented Interfaces:
CompiledRenderPipeline, Destroyable
public record VulkanRenderPipeline(RenderPipeline info, VulkanDevice device, long withDepthStencilPipeline, long withDepthPipeline, long withoutDepthPipeline, long pipelineLayout, VulkanBindGroupLayout layout, long vertexModule, long fragmentModule)
extends Record
implements CompiledRenderPipeline, Destroyable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final VulkanDeviceThe field for thedevicerecord component.private final longThe field for thefragmentModulerecord component.private final RenderPipelineThe field for theinforecord component.static final longprivate final VulkanBindGroupLayoutThe field for thelayoutrecord component.private final longThe field for thepipelineLayoutrecord component.private final longThe field for thevertexModulerecord component.private final longThe field for thewithDepthPipelinerecord component.private final longThe field for thewithDepthStencilPipelinerecord component.private final longThe field for thewithoutDepthPipelinerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionVulkanRenderPipeline(RenderPipeline info, VulkanDevice device, long withDepthStencilPipeline, long withDepthPipeline, long withoutDepthPipeline, long pipelineLayout, VulkanBindGroupLayout layout, long vertexModule, long fragmentModule) Creates an instance of aVulkanRenderPipelinerecord class. -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidapplyBlendInformation(VkPipelineColorBlendAttachmentState.Buffer blendAttachments, BlendFunction blendFunction) static VulkanRenderPipelinecompile(VulkanDevice device, VulkanBindGroupLayout layout, RenderPipeline pipeline, long vertexModule, long fragmentModule) voiddestroy()device()Returns the value of thedevicerecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefragmentModulerecord component.final inthashCode()Returns a hash code value for this object.info()Returns the value of theinforecord component.booleanisValid()layout()Returns the value of thelayoutrecord component.longReturns the value of thepipelineLayoutrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thevertexModulerecord component.longReturns the value of thewithDepthPipelinerecord component.longReturns the value of thewithDepthStencilPipelinerecord component.longReturns the value of thewithoutDepthPipelinerecord component.
-
Field Details
-
info
The field for theinforecord component. -
device
The field for thedevicerecord component. -
withDepthStencilPipeline
private final long withDepthStencilPipelineThe field for thewithDepthStencilPipelinerecord component. -
withDepthPipeline
private final long withDepthPipelineThe field for thewithDepthPipelinerecord component. -
withoutDepthPipeline
private final long withoutDepthPipelineThe field for thewithoutDepthPipelinerecord component. -
pipelineLayout
private final long pipelineLayoutThe field for thepipelineLayoutrecord component. -
layout
The field for thelayoutrecord component. -
vertexModule
private final long vertexModuleThe field for thevertexModulerecord component. -
fragmentModule
private final long fragmentModuleThe field for thefragmentModulerecord component. -
INVALID_PIPELINE
public static final long INVALID_PIPELINE- See Also:
-
-
Constructor Details
-
VulkanRenderPipeline
public VulkanRenderPipeline(RenderPipeline info, VulkanDevice device, long withDepthStencilPipeline, long withDepthPipeline, long withoutDepthPipeline, long pipelineLayout, VulkanBindGroupLayout layout, long vertexModule, long fragmentModule) Creates an instance of aVulkanRenderPipelinerecord class.- Parameters:
info- the value for theinforecord componentdevice- the value for thedevicerecord componentwithDepthStencilPipeline- the value for thewithDepthStencilPipelinerecord componentwithDepthPipeline- the value for thewithDepthPipelinerecord componentwithoutDepthPipeline- the value for thewithoutDepthPipelinerecord componentpipelineLayout- the value for thepipelineLayoutrecord componentlayout- the value for thelayoutrecord componentvertexModule- the value for thevertexModulerecord componentfragmentModule- the value for thefragmentModulerecord component
-
-
Method Details
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceCompiledRenderPipeline
-
compile
public static VulkanRenderPipeline compile(VulkanDevice device, VulkanBindGroupLayout layout, RenderPipeline pipeline, long vertexModule, long fragmentModule) -
destroy
public void destroy()- Specified by:
destroyin interfaceDestroyable
-
applyBlendInformation
private static void applyBlendInformation(VkPipelineColorBlendAttachmentState.Buffer blendAttachments, BlendFunction blendFunction) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-
device
Returns the value of thedevicerecord component.- Returns:
- the value of the
devicerecord component
-
withDepthStencilPipeline
public long withDepthStencilPipeline()Returns the value of thewithDepthStencilPipelinerecord component.- Returns:
- the value of the
withDepthStencilPipelinerecord component
-
withDepthPipeline
public long withDepthPipeline()Returns the value of thewithDepthPipelinerecord component.- Returns:
- the value of the
withDepthPipelinerecord component
-
withoutDepthPipeline
public long withoutDepthPipeline()Returns the value of thewithoutDepthPipelinerecord component.- Returns:
- the value of the
withoutDepthPipelinerecord component
-
pipelineLayout
public long pipelineLayout()Returns the value of thepipelineLayoutrecord component.- Returns:
- the value of the
pipelineLayoutrecord component
-
layout
Returns the value of thelayoutrecord component.- Returns:
- the value of the
layoutrecord component
-
vertexModule
public long vertexModule()Returns the value of thevertexModulerecord component.- Returns:
- the value of the
vertexModulerecord component
-
fragmentModule
public long fragmentModule()Returns the value of thefragmentModulerecord component.- Returns:
- the value of the
fragmentModulerecord component
-