That's not how it works, you have to provide the --graphics option on the command line (use --help to see the options). On Windows D3D11 is the default and that should work. Your graphics card is not involved while compiling. Will try myself in a minute.
-
compute shader example error
Yea its a different error from Visual studio. its an older Quadro k4200 but supports directx 11.2. Will this example run in Kode Studio? I built it for windows and compiled it in VS to get that last error.
| last edited by rons Reputation: 2 | Posts: 28 -
compute shader example error
Ah, you originally just tried to run that in Kode Studio directly, now I understand. That doesn't work because it defaults to an HTML5 build and HTML5 can not do compute shaders. You'll have to switch to Krom (in the debug panel on the top). Maybe also get a current version of Krom (the Krom_bin repository) and point Kode Studio to it (kromPath in the settings).
That said, with Krom it will probably fail the same way it does for the Windows version. Can you see where exactly that error happens in Visual Studio? -
compute shader example error
It compiles with krom but its been running for 10 min now and gives the error "Display file not found in class path (1,1)".
In general Krom never displays anything for me.
The VS error happend at line 277 in the ComputeImpl.cpp
context->UpdateSubresource(shader->impl.constantBuffer, 0, nullptr, constantsMemory, 0, 0);
| last edited by rons Reputation: 2 | Posts: 28 -
compute shader example error
"Display file not found" is just a code completion error and typically happens when you open code for backend X while backend Y is selected, it's not a Krom error. Do you see something in another output panel? Did you update Krom to the latest version? And can you see a 0xFFFFFFFFFFFFFFFF value in the parameters at line 277?
-
compute shader example error
So for the heck of it I went back to the default Kha and Krom installation that comes with Kode Studio and it worked. Krom ran other examples and the compute shader example worked. But other projects im working on to learn Kha do not because some features do not exist in the default Kode Studio verrsion of Kha. Ill get the values for the varibles.
PS thank you very much for all of your help.
-
compute shader example error
So I unistalled everything and fetched Kha again, downloaded the Krom binaries, reinstalled nodejs and set the paths from within Kode Studio. I also installed the Kha extention pak in Visual Studio Code. The build to windows now compiles in VS from Kode Studio for the compute shader example, I cant recreate this problem now. But now I get this error from Krom in Kode Studio and Visual Studio Code. Im not sure why this is showing up all of a sudden.
C:\Devlopment\Kode\libraries\Kha\Backends\Krom/kha/compute/Compute.hx:81: characters 84-92 : kha.compute.Access has no field getIndex
C:\Devlopment\Kode\libraries\Kha\Backends\Krom/kha/compute/Compute.hx:81: characters 162-170 : kha.compute.Access has no field getIndexAlso Krom just doesnt run for anything in Kode Studio, no errors are shown in any terminal. I installed the Kha extention pak in Visual Studio Code and ran some projects from there Krom works.
Im also not well versed in VS so please have patience with me.
Did some more googling and found that there is a problem getting a krom window to open from Kode Studio.
| last edited by rons Reputation: 2 | Posts: 28 -
compute shader example error
Well thats interesting. It must be that I wasn't updating from git-hub properly. Because the path was defiantly set correctly. The error is gone now but the Krom window crashes in Visual studio code. No out put errors were observed. Is there a crash log ?
Thank you again for the help.
| last edited by rons Reputation: 2 | Posts: 28 -
compute shader example error
Can you run Krom (from https://github.com/Kode/Krom) in Visual Studio? You'll just have to put in the start parameters in the Visual Studio properties.