Pinned Loading
-
vktinyhellotriangle
vktinyhellotriangle 1int main(){glfwInit();
2glfwWindowHint(GLFW_CLIENT_API,GLFW_NO_API);
3void*window=glfwCreateWindow(800,600,"Hello Triangle",nullptr,nullptr),*glfwExtensions,*extensionCount=new uint32_t,*queueFamily=new uint32_t,*imageIndex=new uint32_t,*count=new uint32_t,*queueFamilies,*formats,*images,*instance,*surface,*physicalDevice,*device,*queue,*swapchain,*vertexShader,*fragmentShader,*renderPass,*pipelineLayout,*pipeline,*fence,*imageView,*framebuffer,*cmdPool,*cmd;
4glfwExtensions=glfwGetRequiredInstanceExtensions((uint32_t*)extensionCount);
5vkCreateInstance([](auto&&v){return&v;}(VkInstanceCreateInfo{.sType=VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO,.pApplicationInfo=[](auto&&v){return&v;}(VkApplicationInfo{.sType=VK_STRUCTURE_TYPE_APPLICATION_INFO,.apiVersion=VK_API_VERSION_1_0,}),.enabledExtensionCount=*(uint32_t*)extensionCount,.ppEnabledExtensionNames=(const char**)glfwExtensions,}),nullptr,(VkInstance*)&instance);
-
vkhellotriangle
vkhellotriangle 1#include <vulkan/vulkan.h>
2#include <GLFW/glfw3.h>
3#include <glslang/Public/ShaderLang.h>
4#include <glslang/Public/ResourceLimits.h>
5#include <glslang/SPIRV/GlslangToSpv.h>
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.