Made navmesh compile on Windows

Small updates to remove warnings
Testing nonuniform descriptor access in shader
This commit is contained in:
2025-10-05 01:31:39 +01:00
parent 175f4da59b
commit 2c67896cf2
9 changed files with 22533 additions and 22521 deletions

View File

@@ -161,7 +161,7 @@ void G_PipelinesLoad(G_State *game) {
bindings[1].binding = 1;
bindings[1].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
bindings[1].descriptorCount = 1;
bindings[1].descriptorCount = game->n_images;
bindings[1].stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT;
VkDescriptorSetLayoutCreateInfo set_info = { 0 };

View File

@@ -42,8 +42,8 @@ void updateNPC(F32 delta, NPC *npc, World *world) {
}
void UpdateNPCs(F32 delta, World *world) {
for(int i = 0; i < world->npcCount; i++) {
for(U32 i = 0; i < world->npcCount; i++) {
updateNPC(delta, &world->npcs[i], world);
}
}
}

View File

@@ -4,7 +4,7 @@
#include "nav.h"
#include "../core/types.h"
#define NPC_SPEED 0.2
#define NPC_SPEED 0.2f
typedef enum NPC_ACTION NPC_ACTION;
enum NPC_ACTION {

File diff suppressed because it is too large Load Diff