Search Feedback

78
votes

Multi compile for ComputeShader

Graphics

-

-

At the time of writing (Unity 2018.1 beta) the way to compile ComputeShader kernels with different defines (keywords) is this:
https://forum.unity.com/threads/how-to-create-compute-shader-variants.453638/

With complex compute shaders this is tremendous pain. Please implement #pragma multi_compile with ComputeShader.EnableKeyword and DisableKeyword, similar to the implementation for regular shaders.

Comments (1)

  1. A0832f79301e891078cb15369d5ec1dd?d=mm

    raphick

    Jul 19, 2018 17:57

    Here you can follow a direct chat with @Juho-Oravainen (graphic engineer @ unity), and the (semi)automatic solution I made about this.
    https://twitter.com/joravainen/status/979368628637392897

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(10781)

2D

(281)

Ads

(55)

AI & Navigation

(82)

Analytics

(133)

Animation

(396)

Asset Store

(355)

Asset Store Publisher

(17)

Assets

(543)

Audio

(184)

Cloud Build

(145)

Collaborate

(64)

Docs & Tutorials

(240)

Editor

(2507)

Everyplay

(19)

Game Performance Reporting

(22)

General

(980)

Graphics

(870)

GUI

(432)

Input

(173)

Licensing

(92)

Networking

(189)

Physics

(384)

Platforms

(442)

Profiling & Optimization

(85)

Runtime

(182)

Scripting

(1168)

Terrain

(172)

WebGL

(143)