You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ivan Avdeev
a251600c8a
engine: common: imagelib: add KTX2 support ( #1455 )
...
* engine: common: imagelib: add KTX2 support
Adds basic KTX2 support for a few compressed formats. KTX2 essentially
is a Vulkan-centric texture format that supports literally hundreds of
pixel formats.
For now only support for these is added:
- `VK_FORMAT_BC4_UNORM_BLOCK`
- `VK_FORMAT_BC4_SNORM_BLOCK`
- `VK_FORMAT_BC5_UNORM_BLOCK`
- `VK_FORMAT_BC5_SNORM_BLOCK`
- `VK_FORMAT_BC6H_UFLOAT_BLOCK`
- `VK_FORMAT_BC6H_SFLOAT_BLOCK`
- `VK_FORMAT_BC7_UNORM_BLOCK`
- `VK_FORMAT_BC7_SRGB_BLOCK`
Adding more formats is relatively straightforward:
- Copy format definition from `VkFormat` enum in `vulkan_core.h`
- Add a new definition into `pixformat_t` enum.
- Add format size calculation into `Image_ComputeSize()`
While we're at it, also adds a few new formats to DDS:
- BC4_UNORM -- PF_BC4_UNSIGNED
- BC4_SNORM -- PF_BC4_SIGNED
- BC5_UNORM -- PF_BC5_UNSIGNED
- BC5_SNORM -- PF_BC5_SIGNED
- BC7 is expanded into BC7_UNORM and BC7_SRGB
ref_gl and ref_soft code is updated where it made sense. But not tested
really. Support for these formats has been tested with ref_vk.
* address spaces-vs-parentheses formatting where noticed
* parenthesize sizeofs
* move ktx2.h to imagelib as img_ktx2.h; massage it a bit
* use SetBits() instead of |=
* remove stale TODO comments
1 year ago
..
imagelib
engine: common: imagelib: add KTX2 support ( #1455 )
1 year ago
soundlib
engine: soundlib: mp3: fix check for Unicode in ID3v2.4 TXXX tag
1 year ago
base_cmd.c
engine: common: remove unused BaseCmd_Replace
2 years ago
base_cmd.h
engine: common: remove unused BaseCmd_Replace
2 years ago
cfgscript.c
…
cmd.c
engine: server: static-ize functions in sv_game. Set GAME_EXPORT attribute to server GameAPI functions
2 years ago
com_strings.h
engine: client: ref_common: eliminate COM_FreeLibrary in renderer names query, hardcoding them instead
2 years ago
common.c
engine: remove czeror sequence parser
1 year ago
common.h
engine: don't release DLL that wasn't loaded during settings.scr parsing. This should be deleted as soon as possible!
1 year ago
con_utils.c
engine: fix inverted check in DLL unloading in settings.scr parsing
1 year ago
crashhandler.c
engine: crashhandler: changed register names for NetBSD x86 ( #1414 )
1 year ago
custom.c
engine: common: custom: use IL_LOAD_PLAYER_DECAL flag when loading custom player decals
2 years ago
cvar.c
engine: common: cvar: fix buffer overflow in Cvar_ValidateString
1 year ago
cvar.h
engine: common: cvar: remove unused CVAR_TO_BOOL macro
2 years ago
dedicated.c
engine: server: static-ize sv_phys functions, set GAME_EXPORT attribute for PhysicAPI functions
2 years ago
filesystem_engine.c
filesystem: update optional funcs interface, add platform-specific GetNativeObject call
2 years ago
gamma.c
engine: common: remove unused IsBackgroundMap/Demo calls, remove unused gamma function
2 years ago
host.c
engine: host: expose new -borderless flag in command line help
1 year ago
host_state.c
…
hpak.c
engine: add size argument to COM_Default/ReplaceExtension calls
2 years ago
hpak.h
…
identification.c
public: remove Q_sprintf, and patch all code that used it to use Q_snprintf instead
2 years ago
infostring.c
engine: server: static-ize functions in sv_game. Set GAME_EXPORT attribute to server GameAPI functions
2 years ago
ipv6text.c
engine: common: ipv6text: accept changes from upstream GameNetworkingSockets
1 year ago
ipv6text.h
engine: common: ipv6text: accept changes from upstream GameNetworkingSockets
1 year ago
launcher.c
engine: platform: psvita: added developer mode button to launcher
2 years ago
lib_common.c
engine: common: lib_common: fix offset by one UB
2 years ago
library.h
…
masterlist.c
engine: server: move master announce logic to masterlist, keep unique heartbeat challenge and heartbeat timer for each master
2 years ago
mod_bmodel.c
engine: server: static-ize sv_phys functions, set GAME_EXPORT attribute for PhysicAPI functions
2 years ago
mod_local.h
engine: common: move model cvars to static allocation
2 years ago
mod_sprite.c
engine: common: replace some obvious va uses by temp buffer and Q_snprintf or equivalent code
2 years ago
mod_studio.c
engine: common: move model cvars to static allocation
2 years ago
model.c
engine: common: move model cvars to static allocation
2 years ago
net_buffer.c
engine: common: net_buffer: use uint32_t in place of dword
2 years ago
net_buffer.h
engine: common: net_buffer: use stdint.h types in sizebuf_t reading/writing funcs
2 years ago
net_chan.c
engine: common: fix warning about read-only cvar. In fact, we should force set them.
1 year ago
net_encode.c
engine: common: net_encode: fix usage of new Delta_ClampIntegerField, minor fixes
2 years ago
net_encode.h
engine: common: net_encode: directly access delta description struct than searching for it every time
2 years ago
net_ws.c
engine: remove PORT_CLIENT, we should randomize client port by default, thus allowing easier connections from same IP address
1 year ago
net_ws.h
engine: common: move network cvars to static allocation
2 years ago
netchan.h
engine: remove PORT_CLIENT, we should randomize client port by default, thus allowing easier connections from same IP address
1 year ago
pm_debug.c
…
pm_local.h
engine: fix discarded const pointer qualifier in PM_HullPointContents
2 years ago
pm_surface.c
engine: merge PM_TraceTexture into PM_TraceTexturePmove
2 years ago
pm_trace.c
engine: server: static-ize sv_pmove functions
2 years ago
protocol.h
engine: protocol: increase MAX_LIGHTSTYLES from 64 to 256, protocol limit as it encoded as unsigned byte
2 years ago
sys_con.c
engine: common: sys_con: always read from stdin when engine is in dedicated mode
2 years ago
system.c
engine: common: system: fix inverted COM_CheckStringEmpty in Sys_GetCurrentUser for Vita
2 years ago
system.h
engine: remove doublecolons from MSGBOX macros
2 years ago
tests.h
…
whereami.c
engine: whereami: update from our downstream fork (only cosmetic changes)
2 years ago
whereami.h
…
world.c
…
world.h
…
zone.c
engine: common: zone: restore Id Software and Darkplaces copyrights, add Xash3D FWGS copyrights
2 years ago