Stream buffer to use in instancing with DOTS/ECS
Hey,
I'm using the new ECS system (preview 33, 0.0.12) with the Lightweight Renderer Pipe (VR) and the Hybrid Renderer (preview 13, 0.0.1).
I would like to stream buffers to the GPU so I can customise the rendering per instance but I can't find any information on how to do this. I'm aware that shader graph doesn't support instance id but that's fine i can write the shader my self. My main issue is I don't know how to get the buffer streamed to the GPU in the new systems.
I found this link but those classes no longer exist and I can't find a call to DrawMeshInstanced anywhere in all the packages I have. In the Hybrid package it seems to just process the data and not make any submits to the GPU. Does this now hand off to the closed source part of the engine?
I know that I could make my own rendering component and call Graphics.DrawMeshInstanced myself but there's a lot going in the Hybrid Rendering package so I would assume that I might miss out on some optimisations or shoot myself in the foot for not knowing some limitations. It may be the only way though, but looking for confirmation before I take that on.
Thanks, Alex
Your answer
![](https://koobas.hobune.stream/wayback/20220612202851im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Customize LWRP for Quality Settings use 0 Answers
URP and building for XBox consoles...extra URP package availability 0 Answers
HDRP not configuring properly in Unity Collab 0 Answers
Unrecognized assets cannot be included in AssetBundle: "....dll". 4 Answers
Decompression error while importing package 3d Game Kit 1 Answer