Skip to content

Commit 6657009

Browse files
committed
fix build error
1 parent ab0de0e commit 6657009

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jme3-lwjgl3/src/main/java/com/jme3/vulkan/pipelines/ComputePipeline.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ public class ComputePipeline extends Pipeline {
1616

1717
private final ShaderModule shader;
1818

19-
public ComputePipeline(LogicalDevice<?> device, PipelineBindPoint bindPoint, PipelineLayout layout, ShaderModule shader) {
19+
public ComputePipeline(LogicalDevice<?> device, PipelineBindPoint bindPoint, PipelineLayout layout, ShaderModule shader, String entryPoint) {
2020
super(device, bindPoint, layout);
2121
this.shader = shader;
2222
try (MemoryStack stack = MemoryStack.stackPush()) {
2323
VkPipelineShaderStageCreateInfo stage = VkPipelineShaderStageCreateInfo.calloc(stack)
2424
.sType(VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO)
2525
.stage(VK_SHADER_STAGE_COMPUTE_BIT)
2626
.module(shader.getNativeObject())
27-
.pName(stack.UTF8(shader.getEntryPoint()));
27+
.pName(stack.UTF8(entryPoint));
2828
VkComputePipelineCreateInfo.Buffer pipeline = VkComputePipelineCreateInfo.calloc(1, stack)
2929
.sType(VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO)
3030
.stage(stage)

0 commit comments

Comments
 (0)