Quantcast
Channel: Questions in topic: "compute shader"
Browsing all 287 articles
Browse latest View live
↧

AsyncGPUReadbackRequest crashes my pc

Im trying to speed up my marching cubes compute shader so I can use it with some sort of realtime mesh editing and tried to implement AsyncGPUReadbackRequest because ComputeBuffer.GetData() is always...

View Article


Compute Shader Not Working in Build (Linux / OpenGL)

I am unable to get my compute shader to write to a texture in a built version of my project, even though it works in the editor. I made a blank project, and added a quad, which has a script containing...

View Article


How do int textures work in ComputeShaders?

I'm having trouble understanding how to write into a RenderTexture with an integer format (e.g. [RGInt][1]). The following code leads to a completely black texture but by my understanding, it should be...

View Article

GPU Ray tracing: "kernel at index(0) is invalid"

I have been following this tutorial/blog thing: http://three-eyed-games.com/2018/05/03/gpu-ray-tracing-in-unity-part-1/ I'm stuck on the 'reflections' section, I think I have coded (more like 'copied',...

View Article

Trying to convert slow code to compute shader

I have a Dictionary with a vector3 as the key and a custom class as the value (stores pos/rot/type/etc) Then I have a function that starts a spider that crawls through the whole 3d array, BUT it starts...

View Article


Compute shader dispatch large spike in CPU and GPU profiler

Hi everyone, I'm coding a Quadtree based system for the rendering of large planets (similar to No man's sky). Every time im generating a new node in my Quadtree, I have to calculate the new vertex and...

View Article

How to map AsyncGPUReadbackRequest to the buffer it read from?

How to map AsyncGPUReadbackRequest to the buffer it read from? For example to dispose() of the buffer? Let's say I have a few requests all of them reading from buffers of the same size. How do I...

View Article

Render Texture seems to go blank when sent to Compute Shader?

I have a render texture (that's being blitted to from a webcamtexture, if thats helpful), that works fine when I blit it in turn onto the screen - but when I send it to the compute shader, write whats...

View Article


How do you pass data from a compute shader to a C# script

I am trying to learn how to use compute shaders to do the heavy lifting in my mesh generation, but I'm struggling to get the most basic thing to work. I'm currently just trying to pass an int array...

View Article


Sharing code between shader and c# - how?

Hi Everyone, With the new Unity.mathematics library we can now write more or less identical code for (compute) shaders and c#. Fantastic! But *really* great would be if I could use a single source file...

View Article

Compute Shader Outputting Black

Hey All. Just trying to get my head around compute shaders, and just wanted to set an input texture as the output texture. Whenever I do this, I simply get a black output from the processed texture...

View Article

Issue with Compute Shader

Hey, I'm working on converting some code I have to a compute shader but am getting weird results and am not sure why. the code is *supposed* to create a sphere with some deformation for height but its...

View Article

How to dig ground, remove soil and pour the soil somewhere else?

Hello Unity Developers, I am trying to make a simple simulator for an excavator similar to the one shown in this video https://www.youtube.com/watch?v=5B4Yyvqfj1w&ab_channel=Veritasium **Solutions...

View Article


Unity Jobs/DOTS Vs Compute Shader

I am a bit confused on what the specific use cases are for these optimization features. I often hear "Parallel Processing" on the GPU, and "Multithreading". What are these best used for? Is one...

View Article

Compute Shader for Calculations? (like, find closet thing ???)

Hi, most people talking about compute shaders and say it can calculate more things @ once using GPU. My problem is can I use it for find closet enemy to player, something like that? ----------...

View Article


How do you use Mathf.PerlinNoise in a compute shader?

Hello there, I made a terrain generator and a texture generator for the terrain, but the performance wasn't really good. And since the texture is 10x more detailed then the terrain (because I didn't...

View Article

Process multiple buffers with compute shader

I need to process a dynamic number of buffers using a compute shader. Problem, I don't know how to do this and there's sparse information on them online. As the number is dynamic I can't just do...

View Article


Change compute buffer for a set of objects

I gone through the example of [DrawMeshInstancedIndirect()][1]. This works fine when I want to display a huge amount of objects. Now i want to only update some position of the position buffer shown in...

View Article

Compute Shader performance is dropping from a single boolean.

Hello, I am trying to make a custom 3d renderer with projection and rasterization, but I have a question about computeShaders. I have a compute shader that sees if a pixel is in a triangle, then draw...

View Article

ComputeShader, bad output After "if" condition

Ho every One and thanks to read me, i'm doing a marching cube implementati on via computer shader, Building vertices and triangle for my chunk of voxel, i know implementation exists, but thats for...

View Article
Browsing all 287 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>