Comments (4)
I don't think this can be implemented in a straight forward way. The problem is that the new instruction retrieves "a single value that represents a raw, bitwise copy of all of the element’s channels without any conversion of texture contents." As far a I can tell, no existing Vulkan instruction will do that.
from directxshadercompiler.
FYI: https://docs.vulkan.org/spec/latest/chapters/textures.html#textures-format-conversion
from directxshadercompiler.
When we talked about that, it seemed we'd need to to 4 OpImageGather
calls to recombine the N components. But I saw the GatherRaw limits thew formats of the textures to single channels, or worst case, 2 channels textures. So doesn't this means in most cases, we would have a single OpImageGather
to do? And in a very few cases 2?
from directxshadercompiler.
The issue the the bitwise copy. AFAIK, all of the existing instructions will do a format conversion. The point of RawGather is to avoid the format conversion.
from directxshadercompiler.
Related Issues (20)
- SPV_GOOGLE_hlsl_functionality1 is adding by DXC even if user dont need it HOT 1
- VS2022 project build failed HOT 5
- [SPIR-V] Access violation error while parsing the shader HOT 5
- [SPIR-V] Re-enable object debug info HOT 1
- "error: pathspec 'external/googletest' did not match any file(s) known to git" when Pulling HOT 5
- Make process for keeping living release notes in the git repo
- [Feature Request] Run unittests\IRTests HOT 2
- Any way to disable `error: condition for short-circuiting logical ternary operator must be scalar` ? HOT 1
- Provide arm64 build instructions
- `enum class` is not a constexpr HOT 1
- [SPIR-V] Run command in `CodeGenSPIRV/intrinsics.sm6_6.ishelperlane.hlsl` uses `ps_6_0` instead of `ps_6_6` HOT 2
- [SPIR-V] Invalid SPIR-V operand with isnan() HOT 3
- [SPIR-V] DXC crashed with asuint() HOT 1
- DXC.exe missing from the folder HOT 1
- [SPIR-V] DXC rejects indirectly constant Texture Load offset HOT 1
- [SPIR-V] DXC crashes when declaring a variable in multiple case block
- [SPIR-V] Initialization of variables with its own value during declaration
- Shader compiler doesn't generate a loop where one should exist HOT 1
- dxc internal error; invalid GEP with initialization of matrix in a struct
- Disable the clang-format checks when building DXC 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.