public static ShaderResourceView Create <T>( GraphicsDevice graphicsDevice, StaticBuffer <T> buffer) where T : struct { var result = new ShaderResourceView(graphicsDevice, 1); result.PlatformSetStructuredBuffer(0, buffer); return(result); }
public static ShaderResourceView Create <T>( GraphicsDevice graphicsDevice, StaticBuffer <T> buffer) where T : struct { var result = new ShaderResourceView(graphicsDevice, 1); result.PlatformSetStructuredBuffer(0, buffer); return(result); }