throw new AssertionError("Failed to submit command buffer: " + translateVulkanResult(err));
}
}
private static long loadShader(String classPath, VkDevice device) throws IOException {
ByteBuffer shaderCode = ioResourceToByteBuffer(classPath, 1024);
<BUG>IntBuffer pCode = shaderCode.asIntBuffer();</BUG>
int err;
VkShaderModuleCreateInfo moduleCreateInfo = VkShaderModuleCreateInfo.calloc()
.sType(VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO)
.pNext(NULL)
<BUG>.codeSize(shaderCode.remaining())
.pCode(pCode)
</BUG>
.flags(0);

throw new AssertionError("Failed to submit command buffer: " + translateVulkanResult(err));
}
}
private static long loadShader(String classPath, VkDevice device) throws IOException {
ByteBuffer shaderCode = ioResourceToByteBuffer(classPath, 1024);
int err;
VkShaderModuleCreateInfo moduleCreateInfo = VkShaderModuleCreateInfo.calloc()
.sType(VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO)
.pNext(NULL)
.pCode(shaderCode)
.flags(0);
