Comments (4)
Linking this discussion here, as it's quite relevant: #874
I have been meaning to look into this! My preference I think is still primarily towards adding tags for OES textures.
from stereokit.
Making a note here for myself, looks like spirv_cross
has a Compiler::set_variable_type_remap_callback
function which is explicitly designed for cases like samplerExternalOES
.
This probably fits in skshaderc
somewhere around here (this is a branch with some other improvements I'd like to get in), but unfortunately set_variable_type_remap_callback
is only available in spirv_cross
's C++ API. skshaderc
uses the C API, so the GLSL emitting function will either need to be re-written with the C++ API (most likely), or some backdoor will need to be used to get the Compiler
object (might be beyond my C++ skills).
from stereokit.
An update on this one, I've got this working in a sk_gpu branch! Shader format is using a slightly new version though, so it'll need to be integrated into latest StereoKit before it'll be useful.
No big surprises, it'll basically just use an external
tag, and looks like this:
//--tex_name : external = white
Texture2D tex_name : register(t0);
SamplerState tex_name_sampler : register(s0);
from stereokit.
Great, thanks! looking forward to the merge
from stereokit.
Related Issues (20)
- `Renderer.RenderTo` results in y-inverted image with Android HOT 2
- How Stereokit interacts with Unity?
- Platform.ReadFileBytes(filename) and Assets dir HOT 4
- Unicode rendering missing character in Linux simulator HOT 2
- How to use Stereokit to develop overlay applications?How Stereokit interacts with OpenXL?
- UIButton:How to change the background color of a button to an custom image, and how to change the window background to transparent? HOT 1
- Hand tracking problems when piching to grab an object HOT 3
- Segfault when reading gltf using EXT_meshopt_compression / ... HOT 1
- Add Window UIMove mode: face user, but rotate around Y only HOT 3
- How to instantly switch between VST and VR modes
- Ready Player Me GLTFs pack data in a way SK doesn't recognize
- Documentation broken link: Vec3.cs, Dot method
- Predicted pose updates eat JustChanged events
- Asset creation threading issue.
- Capability to set `UI.Input` as focused by default
- Unable to compile release version with ndk HOT 12
- Release 0.3.9 Broke Keyboard Functionality in HoloLens 2 HOT 1
- HoloLens 2 Mixed Reality Capture's viewfinder not showing HOT 4
- Since #986 (and maybe v65 on quest) apps do not wakeup anymore. HOT 4
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 stereokit.