Git Product home page Git Product logo

Comments (7)

ChasBoyd avatar ChasBoyd commented on May 18, 2024

From the DirectX Blog:
"Because the source is available, developers can check to see how the compiler works at the smallest level of detail. You can download it, modify it, and make it a part of any system you are building. You can port it to other platforms. You can also contribute your ideas and code to the project directly, or collaborate with other partners (including hardware vendors) on new contributions."

from directxshadercompiler.

rex-remind101 avatar rex-remind101 commented on May 18, 2024

👍

from directxshadercompiler.

ericwomer avatar ericwomer commented on May 18, 2024

Besides I don't think DirectX runs on android, its an opengl/Vulkan platform.

from directxshadercompiler.

rex-remind101 avatar rex-remind101 commented on May 18, 2024

@salamanderrake This is a shader compiler though right? Which means it compiles shader programs to instructions for a GPU? LLVM can target Android and iOS CPUs so I figured why not GPUs as well?

from directxshadercompiler.

marcelolr avatar marcelolr commented on May 18, 2024

The compiler targets an intermediate representation we refer to as DXIL. App/game authors can distribute this DXIL with their programs and, via the Direct3D runtime, request that whatever GPU the customer has run the shader.

The GPU provides a driver that will do the back-end of the compilation from DXIL to an ISA appropriate for the specific hardware available (along with some additional information the app can provide to create a pipeline state object, but that's getting more into the details of how Direct3D 12 works).

from directxshadercompiler.

DsoTsin avatar DsoTsin commented on May 18, 2024

We can provide a DXIL-SPIRV/MetalIR bytecode translator to support Android or iOS

from directxshadercompiler.

rex-remind101 avatar rex-remind101 commented on May 18, 2024

@marcelolr thanks for the clarity!

@TsinStudio sounds fancy. Are there any cross-compilers already available that you know of to do that kind of translation?

from directxshadercompiler.

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.