GithubHelp home page GithubHelp logo

Comments (3)

adam-sawicki-a avatar adam-sawicki-a commented on May 31, 2024

Hi,

First of all, thank you for using and appreciation of VMA. I'm glad to see that despite it is being developed mostly on PC Windows, it is useful also in Vulkan programming for other kinds of GPUs.

This problem shouldn't stop you from upgrading the library. Please note that every such configuration macro is handled like this: #ifndef MACRO #if CONDITION #define MACRO #endif #endif, so that you can override the logic inside even without modifying the source of VMA, by just defining this macro before include:

#define VMA_USE_STL_SHARED_MUTEX 0
#include "vk_mem_alloc.h"

But I agree with you - usage of shared_mutex should be enabled for any C++17 conforming compiler. There is one caveat though: Visual Studio doesn't define __cplusplus macro properly by default, so it has to be handled in other way.

I've submitted my proposed solution to "master" branch. Can you please check if it solves the problem for you?

from vulkanmemoryallocator.

adam-sawicki-a avatar adam-sawicki-a commented on May 31, 2024

I assume the issue is fixed now and I close the ticket. Please let me know if you find any problems with it.

from vulkanmemoryallocator.

rumblehhh avatar rumblehhh commented on May 31, 2024

Yeah we definitely get good use out of VMA so thanks for the great library! Aha yeah of course we'll do as you suggest and disable STL_SHARED_MUTEX for now. Thanks for the fix in master. It looks fine to me.

from vulkanmemoryallocator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.