Git Product home page Git Product logo

flextgl's People

Contributors

eternalrain avatar ginkgo avatar mgerhardy avatar mosra avatar nairou avatar sopyer avatar to-miz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flextgl's Issues

Add vkEnumerateInstanceVersion to list of statically loadable functions

Based on my reading here: https://www.khronos.org/registry/vulkan/specs/1.1/html/vkspec.html#initialization-functionpointers

I think you can add vkEnumerateInstanceVersion to the list of functions that can be statically loaded. I don't have a PR but I could probably put one together if that would help.

My limited testing was taking the generated flextVk.* files, manually changing vkEnumerateInstanceVersion to a statically defined function and then calling it, which did work. This is on the 1.1.82.1 SDK release.

Thanks,
Wes

enum values for KHR_synchronization2 enums are missing

Hi! I'm trying to generate updated bindings for the vulkan 1.3 spec (vulkan 1.3.224 to be precise).

However, it seems that while most of the API is generated fine, values for some enums are missing. I only noticed because I am trying to use the KHR_synchronization2 functions and it seems that the extended enum values are missing from the header file.
The flags enum itself are generated fine:

typedef VkFlags64 VkAccessFlags2;
typedef VkFlags64 VkPipelineStageFlags2;

but there are no values for, for example, VK_ACCESS_2_SHADER_WRITE_BIT or VK_PIPELINE_STAGE_2_TOP_OF_PIPE_BIT are missing. The spec says that the bit values for the "old" values are the same as the new ones, so in my case I can just use VK_ACCESS_SHADER_WRITE_BIT for now so it's not a big deal, just thought I'd report this.

I'm using the following commandline:

python flextGLgen.py -D generated_ext -t templates/vulkan .\profiles\vulkan-1.3.224_ext.txt

with the vulkan-1.3.224_ext.txt file:

version 1.3 vulkan

extension KHR_swapchain optional

Parse gl.xml in order to generate API

Old *.tm and *.spec files are deprecated since GL 4.4. We need to parse gl.xml in order to generate bindings for OpenGL 4.4.
I have implemented prototype version in branch gl_xml_spec at https://github.com/sopyer/flextGL . If possible I would like see this changes integrated into flextGL after ironing out details and fixing bugs.

Vulkan support uses latest spec which causes Vulkan-Hpp to fail compilation

I've put a MWE here: https://github.com/wesleygriffin/flextgl_repro

I'm using CMake to use the flextgl Vulkan loader with the Vulkan-Hpp bindings and the latest released LunarG SDK (1.1.73).

The installed vulkan.hpp file static_assert's on VK_HEADER_VERSION == 73.

This assert fails because flextgl is grabbing the latest xml spec from https://raw.githubusercontent.com/KhronosGroup/Vulkan-Headers/master/registry/vk.xml which sets VK_HEADER_VERSION to 75.

I tried looking at the Vulkan-Hpp repo, but they've already updated the generated header there to 76.

I'd like to be able to specify "version 1.1.73" in the profile and then have flextgl use that version of the spec.

Issues I see:

  1. The Vulkan-Headers repo doesn't tag the various version commits
  2. The vk.xml spec file is not bundled with the LunarG SDK.

Thanks,
Wes

Recommended way to load all available extensions?

Hi,

I'm getting familiar with flextgl here, sorry if this obvious - is there a recommended way to load all available extensions in the profile.txt file, or template? We'd like to use flextgl with our framework where we don't know just what extensions users may need, so it'd be nice to request them all as optional in our case. I believe this is how GLEW and glLoadGen work as well (though they are in a separate header in those loaders).

flextVK expects statically linking to vulkan

In contrast to vulkan.hpp, which loads everything dynamically, the generated loaders from the vulkan templates still need one to statically link to vulkan.
I can circumvent this by defining vkCreateInstance myself and using eg LoadLibraryW and GetProcAddress on Windows, but that seems backwards. The rationale seems to be to "avoid the need for a global flextVkInit()", but at some point flextVkInit was introduced anyway.

Loading everything dynamically would have these benefits from my point of view:

  • Being able to fallback to another API if vulkan is not available, or display a more meaningful error message.
  • The consumer of the generated loader doesn't have to change his linker settings and can use them as is.
  • Header-only libraries that want to include a subset of vulkan using this generator don't need users to link against vulkan.

CERTIFICATE_VERIFY_FAILED error (OSX 10.11)

I'm getting an SSL error when flextgl downloads the file http://www.opengl.org/registry/api/gl.xml, this is probably because www.opengl.org has a weak certificate (SHA-1). Are you seeing this problem too, and if yes, can recommend a workaround?

Thanks!

Here's the complete log output:

Downloading http://www.opengl.org/registry/api/gl.xml
Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 1182, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 1088, in request
    self._send_request(method, url, body, headers)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 1126, in _send_request
    self.endheaders(body)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 1084, in endheaders
    self._send_output(message_body)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 922, in _send_output
    self.send(msg)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 857, in send
    self.connect()
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/http/client.py", line 1231, in connect
    server_hostname=server_hostname)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ssl.py", line 365, in wrap_socket
    _context=self)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ssl.py", line 583, in __init__
    self.do_handshake()
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ssl.py", line 810, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "../../../../flextgl/flextGLgen.py", line 51, in <module>
    main()
  File "../../../../flextgl/flextGLgen.py", line 14, in main
    flext.download_spec(options.download)
  File "/Users/floh/projects/flextGL/flext.py", line 54, in download_spec
    urllib.request.urlretrieve(fileURL, filePath)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 186, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 161, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 469, in open
    response = meth(req, response)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 579, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 501, in error
    result = self._call_chain(*args)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 441, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 684, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 463, in open
    response = self._open(req, data)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 481, in _open
    '_open', req)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 441, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 1225, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/urllib/request.py", line 1184, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)>

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.