Jump to content

Add StructuredBuffer support to material file/api


photo

Recommended Posts

Hello,

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,

Helmut

Link to comment
×
×
  • Create New...