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

RenderTexture transparency working in editor becomes solid color in build

![alt text][1] ![alt text][2] top: in editor, bottom: in build I am currently trying to get my growth algorithm to work on a texture. When running in the editor everything works as expected, however...

View Article


How to use the compute shader to sample the depth map under URP and calculate...

Here is my code, but the output is always weird. compute shader: #pragma kernel WaterSplash struct Particle { float3 position; float lifetime; float showScale; }; RWStructuredBuffer particleBuffer;...

View Article


How to make grass on a mesh on a m1 mac?

Hello! I've recently created a procedurally generated island mesh and now wondering how to put grass on it. I have spent the past 5 weeks trying to solve this problem but have not got anywhere yet. I...

View Article

Writing to render texture in for loop not working (metal)

I have written a compute shader that fills a 3D render texture with simplex noise. It works perfectly with on my Windows machine with DirectX, but when compiling on Mac with Metal it produces very...

View Article

Send enums to compute shader?

Hey guys! I'm having problems sending an enum value to a compute shader. What I basically have is a component Shape with a public enum ShapeType and a public attribute shapeType of type ShapeType, so I...

View Article


Is it possible to render geometry in a ComputeBuffer outside play mode?

Hi guys, I've been playing around with procedurally generated terrain recently and have now decided that I can't be bothered to press play every time I want to see my mesh, so I made some basic editor...

View Article

Is there a way to determine the number of GPU cores available for a compute...

I'm playing around with Compute Shaders and I'd like to make the application hardware aware. For example, if the computer has a GPU with 2560 compute cores, I'd like the program to distribute the...

View Article

Reading from RWTexture2D in compute shader Unity

I'm learning compute shader with Unity, but I've encountered a bug when transferring RenderTexture to the compute shader. Basically, there're 2 texture being transferred, `renderTexture` and `copyTex`....

View Article


Shader rendering in the scene view but not properly in the game view unless...

*Issue in action + more detail on the issue*: https://youtu.be/O912PTdmFdc As shown above the ember particles are rendering in the scene view (left) but not the game view (right) when the logs (which...

View Article


Error Compute Shaders Xbox

Hey, I’ve build an app for UWP for access it in my Xbox library and now when I load the game on Xbox I have this error: api does not support Compute shader which is a requirement Can you help me please.

View Article

Odd behaviour when retrieving data from compute shader

I've started converting my multithreaded planetary generation code to a compute shader, but I've ran into a weird issue I can't seem to figure out. Here is all the code in question first: private void...

View Article

How can i use Compute Shader to Read & Write the Texture as RHalf or R8 format?

I'm trying to reduce some memory cost by change `RFloat` image to `R8` but the the result become quite strange after i change it. After several tests, I found that any texture format with insufficient...

View Article

compute shader texture sampling issue

Hello everyone! I'm currently in the process of learning how to work with compute shaders and I've experienced an issue with texture sampling in compute shader. When I sample a texture, it always gives...

View Article


Smoke simulation has many jaggers only on the emission entry.

I tried to simulate the smoke emission process with compute shader. After calculating the density of particles with NS equation, I used ray marching to display the animation for each frame. However,...

View Article

How can I convert bytearrays to floats in computeshader

Hi everyone, I'm struggling up with a speed problem of data parsing. I have a huge byte array, and my code copies a subarray of this with a given starting point and length. After the copying process, I...

View Article


Why is this if statement failing on a Compute Shader?

I am trying to use a compute shader to change the colour of an image, and if I add no conditions this works fine. However, if I want to add an if statement to only change the pixels of a particular...

View Article

Compute shader texture not wrapping

Hello! I'm fairly new to compute shaders with Unity but I'm trying to follow a [tutorial][1] about recreating Game of Life using compute shaders. At first I had to refactor the code to use Texture2D...

View Article


When reading back asynchronously from compute shaders, can I reset buffer...

Hope there will be nothing confusing in what I'm going to talk about, because my mother tongue is not English and my grammar is poor:p I'm working on a mipmap analyzing tool which need to calculate...

View Article

Compute shader effect applied to camera output does not affect the entire output

This is a little confusing to explain in the title but the picture sums it up pretty well ![alt text][1] At the top and left edge of the screen the render texture for what is drawn to the screen does...

View Article

Compute Shader cannot unroll loops

Hey! I've been working on outsourcing neural networks onto the GPU. Since I am a beginner with hlsl (but I think I got a basic idea of hlsl etc now), this takes me so much time. While I thought I'd be...

View Article
Browsing all 287 articles
Browse latest View live


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