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
{{ message }}
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.
Hello,
I have a request about the SharpDX.Direct3D9.SetStreamSourceFrequency method :
In SharpDX, this method requires 3 arguments, although in DirectX9 it requires only 2 args, with an OR operator |. I've seen that the method exists in SharpDX with two args, but internal.
I have a problem with the 3 args method because in the MSDN it is specified that at the end of rendering the frequency must be turned off liek this :
Because SharpDX is a low level API, I think developpers won't be worry about usin | operator like they would in native DirectX. Could you make the SharpDX method with two args public and add the two needed constants (in a static class for example) ?
public static class StreamSource
{
public const int INDEX = 0x40000000;
public const int INSTANCE = unchecked((int)0x80000000);
}
Thank you very much
The text was updated successfully, but these errors were encountered:
The method ResetStreamSourceFrequency() does pd3dDevice->SetStreamSourceFreq(streamIndex,1);
The code behind the SetStreamSourceFrequency in SharpDX is doing this:
public void SetStreamSourceFrequency(int stream, int frequency, StreamSource source)
{
int value = (source == StreamSource.IndexedData) ? 0x40000000 : unchecked((int)0x80000000);
SetStreamSourceFrequency(stream, frequency | value);
}
Which is what we would expect to simplify things. Even if SharpDX is low level, there are sometimes some API that are slightly exposed differently to simplify/clarify the API. Probably what is missing here is a proper documentation explaining to existence of ResetStreamSourceFrequency(). But this issue in itself can serve now as a documentation.
Hello,
I have a request about the SharpDX.Direct3D9.SetStreamSourceFrequency method :
In SharpDX, this method requires 3 arguments, although in DirectX9 it requires only 2 args, with an OR operator |. I've seen that the method exists in SharpDX with two args, but internal.
I have a problem with the 3 args method because in the MSDN it is specified that at the end of rendering the frequency must be turned off liek this :
http://msdn.microsoft.com/en-us/library/windows/desktop/bb173349(v=vs.85).aspx
Because SharpDX is a low level API, I think developpers won't be worry about usin | operator like they would in native DirectX. Could you make the SharpDX method with two args public and add the two needed constants (in a static class for example) ?
Thank you very much
The text was updated successfully, but these errors were encountered: