Comments (1)
How abstract atoms work:
abstract
: an abstract capability does not introduce an actual atom. Primarily used to
make disjunctions using the following rules:- Each type of abstract atom defines a "keyhole".
target
andstage
are distinct "keyholes". - Any atom immediately derived off of an abstract atom is a "keyAtom".
- Every conjunction may only populate each "keyhole" once, else the set is incompatible.
- If joining ('+') incompatible sets, an invalid capability is made.
- If Inclusive joining ('|') incompatible sets, a disjunction is made.
- ex:
hlsl + glsl
both populate the same "keyhole" oftarget
, this is incompatible. - ex:
hlsl + _sm_6_0
both populate same keyholes ofhlsl
andhlsl
, this is compatible. - ex:
hlsl | glsl
creates a disjunction of 2 sets:hlsl
andglsl
. This is due to the
2 sets being incompatible. - Having a not populated "keyhole" means your set is compatible with any "keyAtom" of
distinct "keyhole". - ex:
vertex + glsl
works because 'vertex' has a unpopulatedtarget
"keyhole", and
therefore is compatible with alltarget
"keyAtoms"
- Each type of abstract atom defines a "keyhole".
Changes:
- We will allow an inclusive join
- behavior of union will be modified
operators:
+
: 'join', precedence = 0
- LS and RS add all elements together. Incompatible sets being joined will result with a
empty
set. If LS and RS are fully incompatible, error. glsl + hlsl
=>glsl | hlsl
glsl + EXT
=>glsl + EXT
glsl + hlsl + glsl
=>glsl
_sm_6_5 + fragment + vertex
=> err- notice:
fragment + vertex
=> incompatible, try splitting this intoalias tmp = fragment | vertex
_sm_6_5+tmp
- notice:
GL_1 + GL_2 + fragment | GL_1 + GL_3 + fragment;
=> err- error since you are union'ing disjoint sets
GL_1 + GL_2 + fragment | GL_1 + fragment;
=>GL_1 + GL_2 + fragment
- notice: set 1 is not disjoint from set2, set1 is a super set. This is allowed and compacted into 1 set due to how JOIN works.
|
: 'inclusive join', precedence = 1
- This is a inclusive join of sets. Left operand will join with all conjunction sets on the right operand through distribution. Incompatible sets will be added as is.
glsl + EXT1 | glsl + EXT2
=>glsl + EXT1 + EXT2
_sm_4_1 |& _sm_4_0 + compute_fragment
=>_sm_4_1 + fragment | _sm_4_1 + compute
- notice:
set{_sm_4_1}
distributes intoset{_sm_4_0 + compute_fragment}
.
- notice:
SPV_EXT_1 | glsl | SPV_EXT2 | SPV_EXT3
=>SPV_EXT_1 + SPV_EXT2 + SPV_EXT3 | glsl
.
note: precedence follows arithmetic evaluation rules 'left to right'.
from slang.
Related Issues (20)
- Capability System: Profile and look into performance with larger systems
- Metal: support integer type texture
- Fix memory leak in slang.dll HOT 2
- Create the breakdown profiling of slang HOT 2
- AD Cleanup: Use a temporary accumulation inst such as `IRAccumulate` instead of explicitly loading, adding and storing differential values in reverse mode HOT 1
- Implement metrics tracking for GitHub engagement
- Document the existing auto-diff type system, semantic checking and AST synthesis methods
- Return ptr of new Object out of Slang DLL HOT 5
- Stage the CTS cases known failure for now. HOT 1
- Fix CTS tests failures.
- Breakdown the runtime cost of Slang backend passes.
- constexpr doesn't work as expected when used on a function HOT 3
- Design documentation for DXIL linking of shader-modules
- Pointer example on User Guide doesn't work HOT 5
- Incorrect inlining of generic initializers HOT 1
- Throw an error when using `[[vk::binding]]` on global shader parameters
- Wrong matrix operations in Metal? HOT 6
- How to import modules :) HOT 1
- support for opengl HOT 3
- Investigate why the compiler warning level 4 is not working as expected 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 slang.