Is there any tool to change spir-v shader, so I can insert and delete some instructions - graphics

I want to edit spv directly, Is there any tool to change spir-v shader, so I can insert and delete some instructions
I want to edit spv directly, Is there any tool to change spir-v shader, so I can insert and delete some instructions

SPIRV-Cross will let you cross compile SPIR-V to GLSL and a variety of other shading languages and then you can edit and recompile the shaders.

Related

Gradient of Unstructured grid filter in paraview

There used to be a quite useful filter in Paraview called GradinetOfUnstructuredGrid. We could efficiently and effectively calculate the divergence, curl and vorticity of vector field quite easily. For some reasons, they removed this feature in the latest version.
Is there any other way to do the same in ParaView now? Or is there any way to re-install the much better older version?
Edit :
The filter called GradientOfUnstructuredDataset is not similar. For instance, it will not give us Gradient, Curl and Vorticity.
When we apply this filter we get a set of arrays confusingly named from 0- 9, for my uses and purposes this filter is totally useless.
I'm using V 5.8.0
It is still here and called GradientOfUnstructuredDataSet.
Tested in the 5.9.0 RC3 downloaded from the website (where you can also download previous versions)
Sorry for the confusion. The option is still there, just difficult to find.
(1) You can choose the GradientOfUnstructuredDataset filter by going to the filters tool bar.
(2) Then select the vector field of which you want to compute the divergence.
(3) Then click on the Settings icon ( it is right under the properties panel ),
the advanced properties tab will pp open. You can choose to calculate divergence, curl and vorticity from there.

Can we combine the usage of Vim Plugins: Ultisnips and youcompleteme, for using library function prototypes

I am using Ultisnips and youcompleteme plugins. In my C++ project, I have set(CMAKE_EXPORT_COMPILE_COMMANDS=ON) that gives me intellisense completion based on the context.
I want to use the "completion" results provided by youcompleteme, and use it as a snippet to jump to different required fields.
For example(opencv c++):
cv::Mat image = cv::imread(argv[1],1);
cv::namedWind
So, when I select any of the provided completion option, the whole function prototype should be inserted and I should be able to jump through the parameters(snippet fields) to enter the values.
In general, can we do this for any third party libraries.
Reference Image: ycmCompletion
Found a solution.
https://github.com/tenfyzhong/CompleteParameter.vim
But, not finding an option to change the trigger(by default set to '(') key.

Display Mixed Complex Script in Text Editor via Harfbuzz & FreeType

Some Background here:
I've downloaded this example and made it run on my Ubuntu. Everything's fine. I put my own OpenType font into the project and it works fine too! I made sure that HarfBuzz supports my font and my language.Now I need to go further.
I need some guide here:
In the above example,three kinds of language each has it's own font to support the display. I mean,these three languages is rendered separately(as to my understanding of the code).
So, how to make HarfBuzz to select the correct font when many kinds of language are mixed together and render them at once? I mean,without making a font file that supports all languages in the world.
In this example,Chinese script is vertically displayed(which is just as I want),but if I make the Latin script's text_directions to HB_DIRECTION_TTB,which is of course not what I want. I want the whole word 'LATIN' to rotated 90 degree.
So, how can I achieve that? how to make that happen without breaking anything about Chinese layout?
3 .Last but not least,after solving the above problems, I want to make a Text Editor to display and edit many languages at the same time,same place. I don't know if I have to do some work on HarfBuzz or FreeType or implement a text editor that supports this complex text layout? Is there any example that I can refer to ?
Thanks in advance for help.
HarfBuzz is doing shaping just on same script and directionality, you should first split your text, guess or find language and direction of that chunk (using ICU or smt else) then send it to a shaper. Generally on Linux for finding right installed font for a script, you can use fontconfig.
I do not know, I suggest making separate question for that.
Making a text editor starting from shaper is not easy task. You should do bidi, line wrapping and ... that all have their challenges. I suggest use higher level abstraction (pango). For instance browsers doing a lot to support these.

How can I avoid "clean+build" instead of just "build" in my VS2012 solution?

I'm programming a shader in DirectX (SharpDX). The thing is, I've noticed I need to clean and then build everytime I change something in the shader (.fx file). Is there any way to avoid having to do this? Before I made some changes, It looked like "Build" was enough to apply the changes... For instance. If I'm returning a red color for a line. I may change the color to green, the build and I'll still see it red. If I clean+build, I see the changes (lines in green).
I thought it may have to do with some buffer cleaning, but I'm not exactly sure.
Thanks a lot for any idea.
If I recall correctly, the shader compiler is coming along and compiling your shaders to .fxc bytecode. I believe Visual Studio doesn't keep track of changes to "external files" (i.e. not C#/C/C++/whatever code files), so when the program goes to run, it grabs the already compiled .fxc code, which has no new changes. Cleaning it removes those precompiled files, triggering a recompile. The easiest way to solve the problem is to add a custom build step in the Project Properties to run the DirectX shader compiler (fxc.exe) on your shader manually. You'll lose the nice property page stuff with it (assuming you were using them in the first place), but any time you compile your project, it'll recompile your shaders.

pageUp and pageDown used to move caret

How to move the page together with the caret?
In TM1 it was possible to specify this in
~/Library/KeyBindings/DefaultKeyBindings.dict
However it seems not to work in TM2.
It seems like this option is now implemented in the lastest version of textmate2 , released on 2012-02-18, version 9064, as mentioned in the release notes.
Implement option page up/down (for moving caret).

Resources