Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
Loading...
Searching...
No Matches
async_backend_ktx.c File Reference
#include "async_backend.h"
#include "async_loader.h"
#include "gl_common.h"
#include "log.h"
#include "utils.h"
#include <ktx.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for async_backend_ktx.c:

Macros

#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT   0x8E8F
 

Functions

static bool process_ktx_compression (ktxTexture2 *ktx_tex, bool *out_is_bc6h)
 
static void log_ktx_audit (const char *path, ktxTexture2 *ktx_tex, bool is_bc6h)
 
static void configure_request_formats (AsyncRequest *req, ktxTexture2 *ktx_tex, bool is_bc6h)
 
static bool ktx_backend_load (const char *path, AsyncRequest *req)
 
static void ktx_backend_convert (void *dst_ptr, AsyncRequest *req)
 
static void ktx_backend_cleanup (AsyncRequest *req)
 
const AsyncBackendInterface * async_backend_ktx_get (void)
 

Variables

const static double OCTET_TO_MEGA = 1.0 / (1024.0 * 1024.0)
 
static const AsyncBackendInterface g_backend_ktx
 

Macro Definition Documentation

◆ GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT

#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT   0x8E8F

Function Documentation

◆ async_backend_ktx_get()

const AsyncBackendInterface * async_backend_ktx_get ( void  )

◆ configure_request_formats()

static void configure_request_formats ( AsyncRequest *  req,
ktxTexture2 *  ktx_tex,
bool  is_bc6h 
)
static

◆ ktx_backend_cleanup()

static void ktx_backend_cleanup ( AsyncRequest *  req)
static

◆ ktx_backend_convert()

static void ktx_backend_convert ( void *  dst_ptr,
AsyncRequest *  req 
)
static
Here is the call graph for this function:

◆ ktx_backend_load()

static bool ktx_backend_load ( const char *  path,
AsyncRequest *  req 
)
static
Here is the call graph for this function:

◆ log_ktx_audit()

static void log_ktx_audit ( const char *  path,
ktxTexture2 *  ktx_tex,
bool  is_bc6h 
)
static

◆ process_ktx_compression()

static bool process_ktx_compression ( ktxTexture2 *  ktx_tex,
bool *  out_is_bc6h 
)
static

Variable Documentation

◆ g_backend_ktx

const AsyncBackendInterface g_backend_ktx
static
Initial value:
= {
static void ktx_backend_cleanup(AsyncRequest *req)
Definition async_backend_ktx.c:155
static bool ktx_backend_load(const char *path, AsyncRequest *req)
Definition async_backend_ktx.c:102
static void ktx_backend_convert(void *dst_ptr, AsyncRequest *req)
Definition async_backend_ktx.c:131

◆ OCTET_TO_MEGA

const static double OCTET_TO_MEGA = 1.0 / (1024.0 * 1024.0)
static