mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-21 04:42:17 +00:00
Custom images, textures, SSBO, and ShaderPack/ShaderProperties backports
This commit is contained in:
1 parent
6d60477b93
commit
bb52476d27
54 files changed
+2210
-494
No files matched your search
@@ -0,0 +1,23 @@
|
||||
package net.coderbot.iris.gl.texture;
|
||||
|
||||
import java.util.function.IntSupplier;
|
||||
|
||||
public class TextureWrapper implements TextureAccess {
|
||||
private final IntSupplier texture;
|
||||
private final TextureType type;
|
||||
|
||||
public TextureWrapper(IntSupplier texture, TextureType type) {
|
||||
this.texture = texture;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TextureType getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IntSupplier getTextureId() {
|
||||
return this.texture;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user