mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 05:02:18 +00:00
21 lines
1.1 KiB
Diff
21 lines
1.1 KiB
Diff
--- a/com/mojang/renderpearl/api/device/GpuDevice.java
|
|
+++ b/com/mojang/renderpearl/api/device/GpuDevice.java
|
|
@@ -37,7 +_,17 @@
|
|
@Nullable Supplier<String> label, @GpuTexture.Usage int usage, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels
|
|
);
|
|
|
|
+ default GpuTexture createTexture(
|
|
+ @Nullable Supplier<String> label, @GpuTexture.Usage int usage, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels, boolean stencil
|
|
+ ) {
|
|
+ return createTexture(label, usage, format, width, height, depthOrLayers, mipLevels);
|
|
+ }
|
|
+
|
|
GpuTexture createTexture(@Nullable String label, @GpuTexture.Usage int usage, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels);
|
|
+
|
|
+ default GpuTexture createTexture(@Nullable String label, @GpuTexture.Usage int usage, GpuFormat format, int width, int height, int depthOrLayers, int mipLevels, boolean stencil) {
|
|
+ return createTexture(label, usage, format, width, height, depthOrLayers, mipLevels, stencil);
|
|
+ }
|
|
|
|
GpuTextureView createTextureView(GpuTexture texture);
|
|
|