Function fro getting asset base path depending on operating system

This commit is contained in:
saschawillems 2016-03-21 20:10:09 +01:00
parent d7bbb0c7a2
commit 29ac49fb6a
2 changed files with 15 additions and 6 deletions

View file

@ -112,10 +112,10 @@ protected:
// Command buffer submission and execution
VkSemaphore renderComplete;
} semaphores;
// Simple texture loader
vkTools::VulkanTextureLoader *textureLoader = nullptr;
// Returns the base asset path (for shaders, models, textures) depending on the os
const std::string getAssetPath();
public:
bool prepared = false;
uint32_t width = 1280;
@ -247,7 +247,7 @@ public:
virtual void prepare();
// Load a SPIR-V shader
VkPipelineShaderStageCreateInfo loadShader(const char* fileName, VkShaderStageFlagBits stage);
VkPipelineShaderStageCreateInfo loadShader(std::string fileName, VkShaderStageFlagBits stage);
// Create a buffer, fill it with data and bind buffer memory
// Can be used for e.g. vertex or index buffer based on mesh data