You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I know, hlsl supports pass buffers and textures in method call. Are there any plans to support this?
Currently, I must maintain copies of the same function for each shader and each parameter
for example, to achieve something like public readonly void DoSomething(ReadWriteBuffer<uint> array);
I have to make method variants and copies for every buffer and every shader, and situation may even get worse if their are more than one parameters
public ReadWriteBuffer<uint> array1;
public ReadWriteBuffer<uint> array2;
public ReadWriteBuffer<uint> array3;
public readonly void DoSomethingOverArray1AndArray2();
public readonly void DoSomethingOverArray1AndArray3();
public readonly void DoSomethingOverArray2AndArray3();
This looks foolish and brings a lot of trouble
The text was updated successfully, but these errors were encountered:
As far as I know, hlsl supports pass buffers and textures in method call. Are there any plans to support this?
Currently, I must maintain copies of the same function for each shader and each parameter
for example, to achieve something like
public readonly void DoSomething(ReadWriteBuffer<uint> array);
I have to make method variants and copies for every buffer and every shader, and situation may even get worse if their are more than one parameters
This looks foolish and brings a lot of trouble
The text was updated successfully, but these errors were encountered: