minecraft_25w45a_unobfuscated/com/mojang/blaze3d/resource/GraphicsResourceAllocator.java
2025-11-24 22:52:51 +03:00

29 lines
762 B
Java

/*
* Decompiled with CFR 0.152.
*/
package com.mojang.blaze3d.resource;
import com.mojang.blaze3d.resource.ResourceDescriptor;
public interface GraphicsResourceAllocator {
public static final GraphicsResourceAllocator UNPOOLED = new GraphicsResourceAllocator(){
@Override
public <T> T acquire(ResourceDescriptor<T> descriptor) {
T resource = descriptor.allocate();
descriptor.prepare(resource);
return resource;
}
@Override
public <T> void release(ResourceDescriptor<T> descriptor, T resource) {
descriptor.free(resource);
}
};
public <T> T acquire(ResourceDescriptor<T> var1);
public <T> void release(ResourceDescriptor<T> var1, T var2);
}