mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-19 19:14:59 +01:00
Another fix
This commit is contained in:
@@ -126,9 +126,6 @@ public:
|
|||||||
void prefetch( glm::dvec3 const *Origin = nullptr );
|
void prefetch( glm::dvec3 const *Origin = nullptr );
|
||||||
// the data is read from the file when it's needed and not kept after the upload (gfx.textures.streaming)
|
// the data is read from the file when it's needed and not kept after the upload (gfx.textures.streaming)
|
||||||
bool streamed() const;
|
bool streamed() const;
|
||||||
// with gfx.resource.move, copies the gl texture back into the data before it's released. requires the texture bound
|
|
||||||
bool read_back_compressed();
|
|
||||||
void read_back_uncompressed();
|
|
||||||
|
|
||||||
// members
|
// members
|
||||||
std::shared_ptr<texture_request> request; // data being read by a worker thread
|
std::shared_ptr<texture_request> request; // data being read by a worker thread
|
||||||
@@ -178,6 +175,9 @@ struct opengl_texture : public texture_source {
|
|||||||
alloc_rendertarget( GLint format, GLint components, int width, int height, int layers = 1, int samples = 1, GLint wrap = GL_CLAMP_TO_EDGE );
|
alloc_rendertarget( GLint format, GLint components, int width, int height, int layers = 1, int samples = 1, GLint wrap = GL_CLAMP_TO_EDGE );
|
||||||
static void
|
static void
|
||||||
reset_unit_cache();
|
reset_unit_cache();
|
||||||
|
// with gfx.resource.move, copies the gl texture back into the data before it's released. requires the texture bound
|
||||||
|
bool read_back_compressed();
|
||||||
|
void read_back_uncompressed();
|
||||||
virtual
|
virtual
|
||||||
size_t
|
size_t
|
||||||
get_id() const override {
|
get_id() const override {
|
||||||
|
|||||||
Reference in New Issue
Block a user