Git Product home page Git Product logo

Comments (4)

flibitijibibo avatar flibitijibibo commented on July 23, 2024

I just got FEZ booting up with 3.2 Core - here's what has to change to support it:

  • glGetString must be wrapped to use glGetStringi when available (3.0+).
  • A vertex array object must be bound at the beginning of context creation when possible (3.0+). In theory we could try and cache these for VertexBufferBinding[] sets, but that'll basically ask for a whole new GLDevice.
  • Client-side arrays can NOT be used, only VBOs are allowed (3.2+). This is something FNA can't really fix - we're not going to create a fake buffer behind the application's back. XNA has VertexBuffers in the spec, let's use them!

I was considering a ModernGLDevice at some point for this exact scenario, but with Vulkan coming along I opted to wait and see how usable that is for FNA - if it turns out a VulkanDevice doesn't really work, I'll work on a ModernGLDevice instead. It'll aim directly for GL 4.5+ and use every feature it possibly can (persistently mapped buffers, base vertex, VAOs, and so on). I'm pretty hopeful for Vulkan though.

from fna-mghistory.

renaudbedard avatar renaudbedard commented on July 23, 2024

Understood, makes sense.
FEZ does use DrawUser[Indexed]Primitives all over the place so that would be a lot of work to port over.

I'll close the issue. :)

from fna-mghistory.

flibitijibibo avatar flibitijibibo commented on July 23, 2024

I've added support for the 3.2 Core Profile via FNA_OPENGL_FORCE_CORE_PROFILE, in the event that an FNA title does not use client-side arrays and would like to use tools like RenderDoc:

a503f8e
https://github.com/flibitijibibo/FNA/wiki/7:-FNA-Environment-Variables#fna_opengl_force_core_profile

from fna-mghistory.

renaudbedard avatar renaudbedard commented on July 23, 2024

Cool, thanks!

from fna-mghistory.

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.