Fix arguments to createRenderPass
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
8e96814e12
commit
50db20d855
@ -14,6 +14,7 @@ import fr.username404.snowygui.gui.feature.Colors
|
||||
import fr.username404.snowygui.gui.hextoRGB
|
||||
import net.minecraft.client.Minecraft
|
||||
import net.minecraft.client.renderer.RenderPipelines
|
||||
import java.util.OptionalDouble
|
||||
import java.util.OptionalInt
|
||||
|
||||
object RenderingUtil {
|
||||
@ -59,7 +60,9 @@ object RenderingUtil {
|
||||
encoder.createRenderPass(
|
||||
{ name },
|
||||
renderTarget.colorTextureView!!,
|
||||
OptionalInt.empty()
|
||||
OptionalInt.empty(),
|
||||
renderTarget.depthTextureView!!,
|
||||
OptionalDouble.empty()
|
||||
).use { renderPass ->
|
||||
encoder.inRenderPass = false;
|
||||
RenderSystem.getDevice().createBuffer(
|
||||
|
Loading…
Reference in New Issue
Block a user