Add StructuredBuffer support to material file/api


Recommended Posts


it seems to me that the material API and the material file offers only support for Textures and Uniform/Constant buffers as shader resources. It would be great if support for Structured Buffers could be added, i.e. for the material file the following xml tag:

<structuredBuffer unit="43" name="myBufferData"/>

and for the Material API the following methods:

void setStructuredBuffer( int num, const Ptr<StructureBuffer> & structBuffer);
Ptr<StructureBuffer> getStructuredBuffer( int num );

Many thanks,


Link to post

Hi Helmut,

Yep, that indeed would be nice. I've added this feature request to the our features list. However, our release schedule is already packed with a features, so right now it's pretty hard to provide any ETA on this, sorry.

How to submit a good bug report
FTP server for test scenes and user uploads:

Link to post