vk: add a couple of TODO comments

This commit is contained in:
Ivan Avdeev 2023-05-18 12:00:58 -07:00
parent b65f84793a
commit e55e411639
3 changed files with 2 additions and 3 deletions

View File

@ -108,6 +108,7 @@ typedef struct alo_pool_s {
#define DEFAULT_CAPACITY 256
// TODO make it not a pointer. Just Init
struct alo_pool_s* aloPoolCreate(alo_size_t size, int expected_allocations, alo_size_t min_alignment) {
alo_pool_t *pool = MALLOC(sizeof(*pool));
block_t *b;

View File

@ -216,9 +216,6 @@ void main() {
vec3 colour = vec3(0.);
{
// DEBUG motion vectors
//colour = vec3(length(imageLoad(position_t, pix).rgb - imageLoad(prev_position_t, pix).rgb));
// TODO: need to extract reprojecting from this shader because reprojected stuff need svgf denoising pass after it
const vec3 origin = (ubo.ubo.inv_view * vec4(0., 0., 0., 1.)).xyz;
const float depth = length(origin - imageLoad(position_t, pix).xyz);

View File

@ -540,6 +540,7 @@ static qboolean uploadTexture(vk_texture_t *tex, rgbdata_t *const *const layers,
// TODO non-rbga textures
for (int i = 0; i < num_layers; ++i) {
// FIXME create empty black texture if there's no buffer
if (!layers[i]->buffer) {
gEngine.Con_Printf(S_ERROR "Texture %s layer %d missing buffer\n", tex->name, i);
return false;