MCPcopy Create free account
hub / github.com/SaschaWillems/HowToVulkan / ShaderData

Class ShaderData

source/main.cpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51VmaAllocation vBufferAllocation{ VK_NULL_HANDLE };
52VkBuffer vBuffer{ VK_NULL_HANDLE };
53struct ShaderData {
54 glm::mat4 projection;
55 glm::mat4 view;
56 glm::mat4 model[3];
57 glm::vec4 lightPos{ 0.0f, -10.0f, 10.0f, 0.0f };
58 uint32_t selected{ 1 };
59} shaderData{};
60struct ShaderDataBuffer {
61 VmaAllocation allocation{ VK_NULL_HANDLE };
62 VmaAllocationInfo allocationInfo{};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected