Category : vulkan

The vulan enums in the hpp class use a template wrapper to define bitwise operations to guarantee safety. It looks roughly like this: template<typename BitType> class Flags { public: using MaskType = typename std::underlying_type<BitType>::type; // constructors constexpr Flags() : m_mask(0) { } constexpr Flags(BitType bit) : m_mask(static_cast<MaskType>(bit)) { } constexpr Flags(Flags<BitType> const& rhs) : m_mask(rhs.m_mask) ..

Read more

I’m making a vulkan renderer and when I try to create a logical device it throws the following exception on vkCreateDevice only in debug mode: Exception thrown at 0x00007FFBA327A34B (vulkan-1.dll) in Game.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF. Here’s the code (By the way this was made mostly following the vulkan-tutorial.com tutorial): bool FindQueueFamilies(VkPhysicalDevice device, ..

Read more

I’m trying to do off-screen rendering where at the end of my frame I blit from a framebuffer attachment to the swapchain image. The render pass transitions the attachment to VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL and I manually transition the swapchain image like this: VkImageMemoryBarrier2KHR barrier = {}; barrier.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER_2_KHR; barrier.dstStageMask = VK_PIPELINE_STAGE_2_BLIT_BIT_KHR; barrier.dstAccessMask = VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR; barrier.newLayout = ..

Read more

library:assimp;model:*.fbx the skeletal animation can be played normally. But the character’s neck is stretched and does not move. What could be wrong with this? i don’t know why the picture cannot be displayed,i added pictures pass the input to the shader for (size_t i = 0; i < MAX_BONES; ++i){ g_Bones.bones[i] = glm::mat4(1.0f);//为了让没有骨头的模型正常显示 } for ..

Read more

Here is my program. https://github.com/ILLmew/Seagull-Engine-v2 For short, this is an tiny game-engine i wrote to learn new things and here is the question: I have a SCore.dll for basic facilities and all other modules used this to do other things. Now I have a SRendererVulkan.dll which links to SCore.dll and my app Sandbox.exe which links ..

Read more