Giter VIP home page Giter VIP logo

Comments (9)

daveh-lunarg avatar daveh-lunarg commented on May 14, 2024

Planning to switch this to a VisStudio .def file, rather than in-line decorations. It'll be a few weeks before I have time to look at it.

from openxr-sdk-source.

brycehutchings avatar brycehutchings commented on May 14, 2024

I think it could be solved either way. With in-line decorations, we just need to be careful to not use the macro with declspec(export) on things that shouldn't be exported (the ones at the top of Ryan's list starting with 'Loader')

from openxr-sdk-source.

rpavlik avatar rpavlik commented on May 14, 2024

The inline decorations would also keep things consistent across platforms.

from openxr-sdk-source.

daveh-lunarg avatar daveh-lunarg commented on May 14, 2024

Also, need to do the same export check on the API layers projects.

from openxr-sdk-source.

daveh-lunarg avatar daveh-lunarg commented on May 14, 2024

I've had some difficulty getting this right with inline decorations, mostly due to some of the fxn declarations being in code-gen'd header files. Adding a .def file is slam-dunk easy but doesn't do anything for the linux exports, so I'll take another run at in-lining it.

from openxr-sdk-source.

daveh-lunarg avatar daveh-lunarg commented on May 14, 2024

WIP branch daveh-loader-exports-redux

from openxr-sdk-source.

rpavlik avatar rpavlik commented on May 14, 2024

We're only exporting core functions, right? There's a check at the beginning of the loop through the functions where it figures out if it's core, an extension that's just starting, or an existing extension. Could probably set a "export prefix" variable there (to the export macro or empty string) and use it in the replace later. (On phone so this is all from memory but I'm pretty sure this is the easiest way to do that.)

from openxr-sdk-source.

rpavlik avatar rpavlik commented on May 14, 2024

OK, I've got two approaches here done and ready for discussion by wg

from openxr-sdk-source.

daveh-lunarg avatar daveh-lunarg commented on May 14, 2024

WG consensus was to go with 'core-only' export for now, with an eye towards restricting to the minimal set of 4 in the future (possibly with some additional extension-wrangling helpers). PR #98 is approved, closing this issue.

from openxr-sdk-source.

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.