Adding-Command-Line-Argument-rp-for-Non-Mac-iOS-platforms helping in (#1166)

dynamically locating directory where shaders and assets folders present.

Co-authored-by: Shivank Agrahari <sagrahar@qti.qualcomm.com>
This commit is contained in:
quic-sagrahar 2024-11-23 19:31:17 +05:30 committed by GitHub
parent 2871b76a0f
commit 49f380ea1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 49 additions and 22 deletions

View file

@ -61,12 +61,17 @@
#endif
const std::string getAssetPath();
void setResourcePath(std::string path);
const std::string getShaderBasePath();
namespace vks
{
namespace tools
{
/** @brief Variables for Command Line Resource Path */
extern std::string resourcePath;
extern bool resourcePathSet;
/** @brief Disable message boxes on fatal errors */
extern bool errorModeSilent;
@ -82,7 +87,7 @@ namespace vks
// Same as getSupportedDepthFormat but will only select formats that also have stencil
VkBool32 getSupportedDepthStencilFormat(VkPhysicalDevice physicalDevice, VkFormat* depthStencilFormat);
// Returns tru a given format support LINEAR filtering
// Returns true a given format support LINEAR filtering
VkBool32 formatIsFilterable(VkPhysicalDevice physicalDevice, VkFormat format, VkImageTiling tiling);
// Returns true if a given format has a stencil part
VkBool32 formatHasStencil(VkFormat format);