Changeset 237cbec in opengl-game for vulkan-game.hpp
- Timestamp:
- Apr 19, 2020, 2:35:55 AM (4 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 1f81ecc
- Parents:
- 6104594
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.hpp
r6104594 r237cbec 51 51 }; 52 52 53 struct LaserVertex { 54 vec3 pos; 55 vec2 texCoord; 56 unsigned int objIndex; 57 }; 58 53 59 struct UBO_VP_mats { 54 60 alignas(16) mat4 view; … … 63 69 alignas(16) mat4 model; 64 70 alignas(4) float hp; 71 alignas(4) unsigned int deleted; 72 }; 73 74 struct SSBO_Laser { 75 alignas(16) mat4 model; 76 alignas(4) vec3 color; 65 77 alignas(4) unsigned int deleted; 66 78 }; … … 148 160 VkDescriptorImageInfo floorTextureImageDescriptor; 149 161 162 VulkanImage laserTextureImage; 163 VkDescriptorImageInfo laserTextureImageDescriptor; 164 150 165 TTF_Font* font; 151 166 SDL_Texture* fontSDLTexture; … … 200 215 201 216 UBO_VP_mats asteroid_VP_mats; 217 218 GraphicsPipeline_Vulkan<LaserVertex, SSBO_Laser> laserPipeline; 219 vector<SceneObject<LaserVertex, SSBO_Laser>> laserObjects; 220 221 vector<VkBuffer> uniformBuffers_laserPipeline; 222 vector<VkDeviceMemory> uniformBuffersMemory_laserPipeline; 223 vector<VkDescriptorBufferInfo> uniformBufferInfoList_laserPipeline; 224 225 UBO_VP_mats laser_VP_mats; 202 226 203 227 time_point<steady_clock> startTime;
Note:
See TracChangeset
for help on using the changeset viewer.