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

Shader / Compute Shader in Unity

Hello Guys, I want to get into GPU Programming but somehow it is hard to start for me. Are there any good tutorials that are specialized on unity shader programming? My future goal is a procedural...

View Article


Compute shader questions and debugging

I have a compute shader that is supposed to take a float3 input, do some calculations, and output a single float value. I haven't setup the CPU side of things yet. I am getting an error when compiling...

View Article


Can compute shader run on Android device?

Can compute shader run on Android device? I saw unity compute shader is based on DirectCompute which is based on directX, so I assume this is windows only. Then why they pick up this direction to do...

View Article

Runtime generated RenderTexture as Displacement map weird behavior

Hey. I'm using a compute shader to generate a displacement map at runtime. In order to write to a RenderTexture in a compute shader you need to assign some flag* to it before creating it and this (as...

View Article

RenderTextureFormat.R8

Hey. Is there something special about this format? I get very weird values if I try to read from it's first 20% in horizontal direction. Everything else works just as expected and I only encounter this...

View Article


How do I instantiate a Compute Shader

Say I have a Compute Shader asset "ComputeParts.compute" and a game object "MainObj". MainObj has a member (C#): ComputeShader computeShader; Now, how do I assign an instance of ComputeParts.compute to...

View Article

Swapping Compute Shaders

I am editing some point cloud volume data in Unity, on the GPU. My issue is that I have to edit my data in multiple passes (applying multiple different compute shaders to the same data). Is it possible...

View Article

Compute Shader and mipmaps auto-generation

Hello, My initial goal is to use a R32 texture inside a custom shader. As Unity cannot import textures with more than 8 bit depth color as Texture2D, I used a Compute Shader to generate a RenderTexture...

View Article


3D Cellular Automata on the GPU

Let's say that I'm working on implementing cellular automata (like Conway's Game of Life) on the GPU using compute shaders. (also, using DX11, not openGL, but that's only half-relevant) My question is...

View Article


ComputeShader version of Physics.Raycast

Hi all, I am new on ComputeShader. In my application, I wrote a script that contains many may (>10,000) times of Physics.Raycast However, it is well-known that Physics.Raycast is CPU, and thus slow....

View Article

Compute Shader, replacing floats to double

I made some variant of particle system what independed on particle count, but i hadn't enogth float precision to make system in stabilised state, so i decided to use double instead of float. But...

View Article

More than one Kernel in Compute Shader

Hi, I'm experimenting with compute shaders and wanted to test having more than one kernel. I created a compute shader where one kernel fills a buffer with "red" the other with fills it with "green". In...

View Article

SystemInfo claims support for compute shader but using it crashes the simulation

I implemented a check to see if the machine the software is running on supports compute shaders and shader model 5.0. The shader level returned is 50, and supportsComputeShaders == true. That seems to...

View Article


constant buffer in compute shaders

so , how to setup constant buffer for compute shaders in unity ? I'm working on fft ocean simulator(https://www.youtube.com/watch?v=R3EQHT3lLgY) and is not very convenient to transfer there are many...

View Article

GPU Sorting

I'm trying to implement sorting using DirectCompute for my particle system. I found [this post][1], which is great, but the sorting is incredibly slow. The [C++ version][2] can sort a million integers...

View Article


Compute shaders in OSX

It's my understanding that the **compute shaders** in Unity are run leaning exclusively on DirectX11 features, which means that they **can't be run under OSX**, which leans on OpenGL. Is my...

View Article

Can I receive values from Compute Shader?

Hello, I am interested in Compute Shader. I know Compute Shader used to post effect, but I wonder if it can use for simple calculation. For example, can I input 2 floats to Compute Shader and get the...

View Article


Debugging Tools for Unity Compute Shaders

Is there a clean way to debug Compute Shaders running with Unity? I see that graphics shaders can be debugged with MS Visual Studios when enabling debug symbol params. I don't see any documentation for...

View Article

Custom colliders on the GPU

This presentation is utterly amazing: http://beta.unity3d.com/talks/Siggraph2011_SpecialEffectsWithDepth_WithNotes.pdf Unfortunately, I can only find the *.pdf above. Does anyone have a link to a video...

View Article

Generate a large data structure using a compute shader

I know that RWTexture2D Result; void CSMain (uint3 id : SV_DispatchThreadID) { Result[id.xy] = float3(1,2,3); } will result in an texture containing the numbers 1,2,3 however I'm now looking for a way...

View Article
Browsing all 287 articles
Browse latest View live


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