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

Shader structured buffers inquiry

Hi, I've been trying to move my project's calculations from CPU to GPU and have been reading and experimenting about different buffers for transporting data between the two. I'm not sure I fully...

View Article


Build not working on other computers

Hello! I'm experiencing some issue while running a build of the game on another computer. The issue: Meshes aren't being generated properly. Ideas: I think the issue may be the compute shader. You see,...

View Article


RenderTexture being wiped/changed on play or undo.

I have a system where I'm using a custom shader to blit some information into a RenderTexture, which I then display using World Space canvases and RawImages. It works fine in terms of generating the...

View Article

How to add a Vector3 to a ComputeBuffer

I have problem adding an object of a user-defined class as data to a ComputeBuffer. Here is my code: using System.Collections; using System.Collections.Generic; using UnityEngine; public class...

View Article

RenderTexture for computer shader is being null on material

Hi,guys I write a compute shader for a rendertexure and set this rendertexture to be a global texture( Shader.SetGlobalTexture()),but I find that if I do not select it in editor,it will be null on...

View Article


How to put many RenderTextures into Compute Shader

When I want to put many Texture2Ds into a Compute Shader and do something(like mixing or..) on them. I can create a Texture2DArray to put the Texture2Ds together, And in Compute Shader, it is also...

View Article

Shader for Outline Contour Points

Hi everyone, I have a project about instance segmentation which requires to create contour around certain objects. I am currently using OpenCV for detecting edges for every mesh but it feels like...

View Article

How can I get the correct color value of a Texture2D in a compute shader?,

I would like to get the red, green and blue color values of a specific pixel in a compute shader. But unfortunately the values I get are always lower than the correct value unless it is 0 or 1. To test...

View Article


Two dimensional array in compute shader

I want to use a compute shader to calculate movements of cloth particles. Cloth particle is a struct that contains three Vector3s its current position, previous position and acceleration to add. On CPU...

View Article


Structures or compute buffer in unlit shader

Is it possible to use a structured buffer in an unlit shader to hold or store the initial position of the vertex?

View Article

Tips on debugging compute shader

I'm following [this tutorial][1] for making 3D perlin noise, but decided to have a go at compute shaders and use that for the calculations. ![alt text][2] This part of the code takes the values i0 and...

View Article

How to work with multiple Kernels sequentially(!) in a ComputeShader on one...

Dear Unity3d experts, I have a question regarding ComputeShaders with multiple kernels and one ComputeBuffer. I am trying to work with multiple Kernels (sequentially) on one ComputeBuffer and want to...

View Article

,Drawing 100 000+ cubes

I've started a project to try to learn compute shaders. I decided to do a very basic test where I have a field of cubes moving in waves. So I started with making this normally. However, I've found that...

View Article


Does it impact the performance if I use multible Threadgroups instead of one...

Hi. I've been doing calculations with a compute shader and I stumbled across the issue that the thread size has to be a fixed value and can't be changed at runtime (at least I think). I got around the...

View Article

Compute Shader not work on older GPU with DX11

Hi, I created Compute Shader in unity 2019.4 (DX11) and works well on RTX 2070S. But when I try run it in same version of Unity or even build on my older laptop with GT 650M (2GB) I have black screen....

View Article


Sharing Compute Buffers between multiple Compute Shader instances

I am currently working on some voxel generation using Compute Shaders, but am having a performance issue when it comes to multiple compute shaders sharing a buffer. Essentially I have a compute shader...

View Article

ComputeShader: StructuredBuffer sometimes empty in Metal

Hi all, I'm trying to access a StructuredBuffer from a Compute Shader targeting Metal on a MacBook Pro, and finding that it is sometimes full of zeros the first time the shader runs... My shader is...

View Article


How to make floats have their normal precision in compute shaders?,Compute...

hey guys,I dont know if this belongs over here, but I ran into a problem while trying to optimize my code by writing a simple compute shader: I was writing a compute shade(a quite simple one) but every...

View Article

#include not finding compute file

I'm working on a shader that requires me to be able to 'latch on' to another compute shader. I'm using #Include "/Includes/LookupTables.compute" and that shader is in a folder named Includes and I've...

View Article

How to save ComputeBuffer?

I have a computebuffer that holds non-blittable types that I would like to save in some way. Ideally I would want them to serialize and never release. struct Grid{ float3 vert[15]; float4 col[15]; int...

View Article
Browsing all 287 articles
Browse latest View live


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