Save
Saving
  • R
    rons

    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);

    posted in Kode read more
  • R
    rons

    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.

    posted in Kode read more
  • R
    rons

    It shows the correct path. It will build to VS project and compiles but crashes with an exception error:

    Exception thrown at 0x00007FF8933FA131 (d3d11_3SDKLayers.dll) in ComputeShader.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.

    posted in Kode read more
  • R
    rons

    I fetched the latest version of kha this morning.

    posted in Kode read more
  • R
    rons

    Ok it looks like i am dunning directx 12 but I still get the error above.

    posted in Kode read more
  • R
    rons

    Nevermind I found it. Add a compiler flag in khafile.js

    project.addParameter('-graphics direct3d11');

    or

    project.addParameter('-graphics opengl');

    Although it still does not compile it could be the graphics card im using.

    posted in Kode read more
  • R
    rons

    Im having problems running the compute shader example. It gives the following error:

    Error compiling to GLSL ES 100: At least ESSL 3.10 required for compute shaders.

    Is this because Kha defaults to a graphics api that does not support compute shaders? Is there a way to force Kha to either Directx 11 or an Opengl version that does support them from within Kode Studio?

    Thanks for the help.

    posted in Kode read more
  • R
    rons

    <face_palm.gif> I guess that happens when you look at something for too long. Thank you for the help.

    posted in Kode read more
  • R
    rons

    I am using a backbuffer to prevent flickering using Image.createRenderTarget. Using the following antialiasing statement does not work.

    System.start({width, 1024, height:768, framebuffer:{samplesPerPixel: 4}}, function(_) {});

    What obvious thing am I missing?

    Thank you

    posted in Kode read more
  • R
    rons

    Yes the Kha backend is what i meant. Thank you for the reply. I suppose if I feel courageous enough ill give it a try 🙂

    posted in Kode read more