Compute shader on UWP
Hi everyone, I have some difficulties on running a very simple test compute shader on UWP. As a base I have a very simple shader and script running just fine on a Quad in my Unity editor (5.6.0f3). But...
View ArticleHow to build for Mac to make compute shaders work?
The problem is that even though 5.6 supposed to compile compute shaders for Metal, it didn't work for me. I created a simple project: compute shader is used to render a fractal. Then I just made Mac OS...
View ArticleImplementation of GPU Flocking?
Hi, I'm new to Unity and Compute Shaders. I'm trying to implement GPU Flocking using compute shaders in Unity to show that GPU Computing is faster than the CPU . I've managed to write a script and...
View ArticleSystemInfo.supportsComputeShaders always false on Android
Hello, I'm trying to get compute shaders to work on Android but SystemInfo.supportsComputeShaders always return false when my target platform is Android. When I select Windows as my target platform, it...
View ArticleUpload list of textures to the GPU to be used with compute shaders ?
Hi, i need to collect ( have no problem with this ) and upload all the textures used in a scene to the GPU memory. ComputeShader.SetTexture() can set a single texture only. Is there any way of loading...
View ArticleHow does one do compute shaders(with particles)?
So, this is my first attempt at compute shaders and I'm quite lost... ANY help or referral is higly appreciated. ---------- My goal is to achieve an effect that I've only been able to identify as...
View ArticleCompute shaders not working in editor but working on device
I have started learning compute shaders. And I found a really good project on github (https://github.com/antoinefournier/XParticle) that would help me learn and experiment with compute shaders. As I...
View ArticleHow to write to a RenderTexture as a cubemap
So after a lot of digging I found RenderTexture.isCubeMap. Then I found that it was obsolete. Then I found RenderTexture.dimension and, by extension, UnityEngine.Rendering.TextureDimension.Cube which...
View ArticleHow to disable Warnings in Compute Shaders ?
Hi, We are using Compute Shaders in our project and doing quite a lot of math operations. A warning is always generated : ***"Shader warning in 'VertexGenerator.compute': integer divides may be much...
View ArticleWhat does "Pass platform caps keyword defines to compute shaders" mean?
In the [2017.1.0 release notes][1] it says "Shaders: Pass platform caps keyword defines to compute shaders." What does that mean? [1]: https://unity3d.com/unity/what's-new/unity-2017.1.0
View ArticleCompute Shader calculation time
Hi, how can I know for sure that from the moment I call: shader.Dispatch(kernelHandle, x, y, z); the next line the compute shader is done with the calculations? I mean, lets say I want to calculate...
View ArticleHow would you index a texture in a compute shader to matched UV coordinates
If you have a compute shader with 16 by 16 by 1 threads, run 32 by 32 by 1 times, for a texture size 512 * 512, how would you index that in a way that would match the UV coordinates of a texture. This...
View ArticleHow would I use compute shader with physics?
Hello, I've been trying to make a simulation game using particles but my main problem is how to make them collide with each other. About everywhere I've looked had something talking about compute...
View ArticleHow do I use compute shaders with particles?
Hello, I'm trying to make a 2D mobile simulation game that is entirely based on particles. It's meant to have different elements you can spawn that act in different ways, at the moment I made water but...
View ArticleAccessing and writing depth on a render texture in compute shader
Hey, so this might seem to be a stupid question, but so far after a few days of trying to find this I have found only people who don't know how to do this or people who assume you know how to do this,...
View ArticlePass ComputeBuffer to another ComputeShader
Hello. I am using two compute shader for computing quite large texture. My process can be summarized as below steps. 1. Pass 'Texture 1' to 'Compute shader A'. 2. 'Compute shader A' produces new...
View ArticleHow to Update UI.Image for compute shaders?
So I've dove into some Compute Shaders because it's definitely better way to render anything you can think of - which for me is trying to render Voxels without dealing with polygons. Here's a quick...
View ArticleCompute Shader Threads
Can a Compute Shader kick off threads from within a kernel thread? Let's say I'm using a compute shader to get a single vector back from a GPU calculation. So I kick off 1 thread in my dispatch from...
View ArticleUnity doesn't recognize compute shader
Hi, everyone! I'm brand new to writing compute shaders in Unity, and I seem to have issues very early off. When I try to use any of the ComputeShader [functions][1] defined by Unity, it throws an...
View ArticleUVs are not mapped properly in my unity surface shader
Hi, I am trying to use compute shaders with surface shaders with dx11 tesselation shaders ( Using unity's distance base tesselation example from unity guide ). I copied the generated code from surface...
View Article