Comments (3)
Fixed. I'll push a new release after adding some more tests. :)
from rspirv.
Never mind, I should’ve read the documentation. Though even if I use builder.id()
how do I make a later basic block use exactly that id instead of the next auto-generated one? The builder gives no mutable references to any of the objects it creates, as far as I can tell.
from rspirv.
Yep, confirmed. This is a flaw in the current builder API. I knew forward references would bite me so I left some comments in the doc about it. However, the solution covers some case but not all. I'll fix the rest soon. :)
Returning an instruction to allow fixing up things later was truly the way I'd like to take previously. But after a second thought, wrapping all instructions with Cell
introduces too much overheads into the current data representation. So I think I'll instead change the builder methods to take an additional Option<spirv::Word>
for result ids. It brings in some boilerplate code when using the API, but it keeps the current simple data representation.
Thanks for reporting! :)
from rspirv.
Related Issues (20)
- Floating-point literals should store bits in integers, not use host f32/f64. HOT 2
- New spirv_headers release HOT 1
- ImageFormat::Rgb10a2ui uses inconsistent casing. HOT 4
- Published 1.5.1 broke public API HOT 8
- Switch spirv_headers to SemVer HOT 5
- Rename "required_capabilities" for clarity
- `IdResult` and `IdResultType` on SR?
- Publish rspirv 0.8 ? HOT 1
- LiftContext::convert struggles with linked multi-stage SPIRV
- Unable to retrieve decorations in structured representation HOT 3
- Store all instructions in one `Vec`?
- LiftContext::lift_op responsible for ~25% of the generated llvm ir
- spirv: Vulkan SDK based versioning HOT 6
- Disassembling constant literals is broken HOT 2
- LICENSE files in package subdirs HOT 3
- Update spirv's version of bitflags to 1.0.4
- Multiple operations with same opcode HOT 4
- Bug: selection_merge ends block.
- Release `spirv:0.3.0+sdk-1.3.243.0` not on crates.io HOT 17
- Removal of `FromPrimitive` in enums broke instruction parsing in spirq HOT 3
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 rspirv.