MCPcopy Create free account
hub / github.com/android/ndk-samples / initVulkan

Method initVulkan

hello-vulkan/app/src/main/cpp/hellovk.h:280–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278};
279
280void HelloVK::initVulkan() {
281 createInstance();
282 createSurface();
283 pickPhysicalDevice();
284 createLogicalDeviceAndQueue();
285 setupDebugMessenger();
286 establishDisplaySizeIdentity();
287 createSwapChain();
288 createImageViews();
289 createRenderPass();
290 createDescriptorSetLayout();
291 createUniformBuffers();
292 createDescriptorPool();
293 createDescriptorSets();
294 createGraphicsPipeline();
295 createFramebuffers();
296 createCommandPool();
297 createCommandBuffer();
298 createSyncObjects();
299 initialized = true;
300}
301
302/*
303 * Create a buffer with specified usage and memory properties

Callers 1

HandleCmdFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected