2025-11-24 22:52:51 +03:00

31 lines
518 B
Java

/*
* Decompiled with CFR 0.152.
*/
package com.mojang.blaze3d.textures;
public enum TextureFormat {
RGBA8(4),
RED8(1),
RED8I(1),
DEPTH32(4);
private final int pixelSize;
private TextureFormat(int pixelSize) {
this.pixelSize = pixelSize;
}
public int pixelSize() {
return this.pixelSize;
}
public boolean hasColorAspect() {
return this == RGBA8 || this == RED8;
}
public boolean hasDepthAspect() {
return this == DEPTH32;
}
}