Update SDL3
This commit is contained in:
9
Source/ThirdParty/SDL/SDL3/SDL_audio.h
vendored
9
Source/ThirdParty/SDL/SDL3/SDL_audio.h
vendored
@@ -958,7 +958,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_CloseAudioDevice(SDL_AudioDeviceID devid);
|
||||
* \sa SDL_UnbindAudioStream
|
||||
* \sa SDL_GetAudioStreamDevice
|
||||
*/
|
||||
extern SDL_DECLSPEC bool SDLCALL SDL_BindAudioStreams(SDL_AudioDeviceID devid, SDL_AudioStream **streams, int num_streams);
|
||||
extern SDL_DECLSPEC bool SDLCALL SDL_BindAudioStreams(SDL_AudioDeviceID devid, SDL_AudioStream * const *streams, int num_streams);
|
||||
|
||||
/**
|
||||
* Bind a single audio stream to an audio device.
|
||||
@@ -990,7 +990,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_BindAudioStream(SDL_AudioDeviceID devid, SD
|
||||
*
|
||||
* Unbinding a stream that isn't bound to a device is a legal no-op.
|
||||
*
|
||||
* \param streams an array of audio streams to unbind.
|
||||
* \param streams an array of audio streams to unbind. Can be NULL or contain
|
||||
* NULL.
|
||||
* \param num_streams number streams listed in the `streams` array.
|
||||
*
|
||||
* \threadsafety It is safe to call this function from any thread.
|
||||
@@ -999,7 +1000,7 @@ extern SDL_DECLSPEC bool SDLCALL SDL_BindAudioStream(SDL_AudioDeviceID devid, SD
|
||||
*
|
||||
* \sa SDL_BindAudioStreams
|
||||
*/
|
||||
extern SDL_DECLSPEC void SDLCALL SDL_UnbindAudioStreams(SDL_AudioStream **streams, int num_streams);
|
||||
extern SDL_DECLSPEC void SDLCALL SDL_UnbindAudioStreams(SDL_AudioStream * const *streams, int num_streams);
|
||||
|
||||
/**
|
||||
* Unbind a single audio stream from its audio device.
|
||||
@@ -1007,7 +1008,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_UnbindAudioStreams(SDL_AudioStream **stream
|
||||
* This is a convenience function, equivalent to calling
|
||||
* `SDL_UnbindAudioStreams(&stream, 1)`.
|
||||
*
|
||||
* \param stream an audio stream to unbind from a device.
|
||||
* \param stream an audio stream to unbind from a device. Can be NULL.
|
||||
*
|
||||
* \threadsafety It is safe to call this function from any thread.
|
||||
*
|
||||
|
||||
6
Source/ThirdParty/SDL/SDL3/SDL_gpu.h
vendored
6
Source/ThirdParty/SDL/SDL3/SDL_gpu.h
vendored
@@ -1518,6 +1518,8 @@ typedef struct SDL_GPUVertexAttribute
|
||||
* \since This struct is available since SDL 3.1.3
|
||||
*
|
||||
* \sa SDL_GPUGraphicsPipelineCreateInfo
|
||||
* \sa SDL_GPUVertexBufferDescription
|
||||
* \sa SDL_GPUVertexAttribute
|
||||
*/
|
||||
typedef struct SDL_GPUVertexInputState
|
||||
{
|
||||
@@ -1597,6 +1599,10 @@ typedef struct SDL_GPUShaderCreateInfo
|
||||
* \since This struct is available since SDL 3.1.3
|
||||
*
|
||||
* \sa SDL_CreateGPUTexture
|
||||
* \sa SDL_GPUTextureType
|
||||
* \sa SDL_GPUTextureFormat
|
||||
* \sa SDL_GPUTextureUsageFlags
|
||||
* \sa SDL_GPUSampleCount
|
||||
*/
|
||||
typedef struct SDL_GPUTextureCreateInfo
|
||||
{
|
||||
|
||||
4
Source/ThirdParty/SDL/SDL3/SDL_hints.h
vendored
4
Source/ThirdParty/SDL/SDL3/SDL_hints.h
vendored
@@ -2775,6 +2775,10 @@ extern "C" {
|
||||
* - "1": SDL will send a quit event when the last window is requesting to
|
||||
* close. (default)
|
||||
*
|
||||
* If there is at least one active system tray icon, SDL_EVENT_QUIT will
|
||||
* instead be sent when both the last window will be closed and the last tray
|
||||
* icon will be destroyed.
|
||||
*
|
||||
* This hint can be set anytime.
|
||||
*
|
||||
* \since This hint is available since SDL 3.1.3.
|
||||
|
||||
20
Source/ThirdParty/SDL/SDL3/SDL_revision.h
vendored
20
Source/ThirdParty/SDL/SDL3/SDL_revision.h
vendored
@@ -11,19 +11,19 @@
|
||||
freely, subject to the following restrictions:
|
||||
|
||||
1. The origin of this software must not be misrepresented; you must not
|
||||
claim that you wrote the original software. If you use this software
|
||||
in a product, an acknowledgment in the product documentation would be
|
||||
appreciated but is not required.
|
||||
claim that you wrote the original software. If you use this software
|
||||
in a product, an acknowledgment in the product documentation would be
|
||||
appreciated but is not required.
|
||||
2. Altered source versions must be plainly marked as such, and must not be
|
||||
misrepresented as being the original software.
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file SDL_revision.h
|
||||
*
|
||||
* Header file containing the SDL revision.
|
||||
*/
|
||||
* \file SDL_revision.h
|
||||
*
|
||||
* Header file containing the SDL revision.
|
||||
*/
|
||||
|
||||
#ifndef SDL_revision_h_
|
||||
#define SDL_revision_h_
|
||||
@@ -31,9 +31,9 @@
|
||||
/* #undef SDL_VENDOR_INFO */
|
||||
|
||||
#ifdef SDL_VENDOR_INFO
|
||||
#define SDL_REVISION "SDL-40f9fd8 (" SDL_VENDOR_INFO ")"
|
||||
#define SDL_REVISION "SDL3-3.1.7-preview-3.1.6-496-g5acd7fe208 (" SDL_VENDOR_INFO ")"
|
||||
#else
|
||||
#define SDL_REVISION "SDL-40f9fd8"
|
||||
#define SDL_REVISION "SDL3-3.1.7-preview-3.1.6-496-g5acd7fe208"
|
||||
#endif
|
||||
|
||||
#endif /* SDL_revision_h_ */
|
||||
|
||||
@@ -88,8 +88,8 @@ namespace Flax.Deps.Dependencies
|
||||
Path.Combine(root, "include", "SDL3"),
|
||||
};
|
||||
|
||||
CloneGitRepoFastSince(root, "https://github.com/libsdl-org/SDL.git", new DateTime(2024, 12, 26));
|
||||
GitResetToCommit(root, "578509c326f6bcc25fba7b71ebb439a165808bc5");
|
||||
CloneGitRepoFastSince(root, "https://github.com/libsdl-org/SDL.git", new DateTime(2024, 12, 27));
|
||||
GitResetToCommit(root, "5acd7fe208d332a6a546be65042dc3112dd84cac");
|
||||
|
||||
foreach (var platform in options.Platforms)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user