Comments (7)
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.
👍
from directxshadercompiler.
Besides I don't think DirectX runs on android, its an opengl/Vulkan platform.
from directxshadercompiler.
@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.
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.
We can provide a DXIL-SPIRV/MetalIR bytecode translator to support Android or iOS
from directxshadercompiler.
@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)
- Move Patch constant `inout` parameter check to Sema
- [SPIR-V] Move check to verify PatchConstant output patch element count to Sema
- [Validation] Wave size range tests do not have coverage for when the minimum and maximum are equal
- static variable inside cbuffer are not marked const HOT 4
- Confusing error reported by the validator caused by compiler failing to report an incorrect use of function parameter 'out' qualifier HOT 3
- [Feature Request] WaveMatrix ops should be allowed in node shaders HOT 1
- Revise DXC help text: "(must be used with /Fo <file>)" HOT 1
- [Feature Request] Implement experimental mesh nodes
- DXC mesh node preview release HOT 2
- Infinite loop in SemaHLSL when compiling weird array HOT 2
- [SPIR-V] Incorrect SPIR-V for bitfields HOT 3
- [DXIL] Null pointer exception due to `double` floating-point literals in `fmod` intrinsic HOT 3
- [SPIR-V] Time to update the Inline SPIR-V wiki HOT 3
- [Feature Request] Drop the requirement for semantic strings when emitting `-spirv` HOT 1
- [SPIR-V] GetAttributeAtVertex generates invalid SPIR-V with `-O0` and a shared type between nointerpolation and normal.
- Ternary texture sampling produces illegal / crashing DXIL HOT 3
- dxc generates invalid alignment on groupshared matrix load/store instructions
- Usage of a matrix in a structure that is passed to groupshared memory does not get dead store eliminated HOT 1
- [DXIL] Null pointer exception due to double floating-point literals in fmod intrinsic (in 1.8.2403 release) HOT 1
- Release 1.8.2403.1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directxshadercompiler.