-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable experimental Vulkan testing on macOS
- Loading branch information
Showing
24 changed files
with
631 additions
and
384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// | ||
// Copyright 2024 Pixar | ||
// | ||
// Licensed under the terms set forth in the LICENSE.txt file available at | ||
// https://openusd.org/license. | ||
// | ||
#include "testGLNullContext.h" | ||
|
||
PXR_NAMESPACE_OPEN_SCOPE | ||
|
||
Glf_TestGLContextPrivate const * Glf_TestGLContextPrivate::_currenGLContext=nullptr; | ||
|
||
Glf_TestGLContextPrivate::Glf_TestGLContextPrivate( Glf_TestGLContextPrivate const *) | ||
{ | ||
} | ||
|
||
void | ||
Glf_TestGLContextPrivate::makeCurrent( ) const | ||
{ | ||
_currenGLContext=this; | ||
} | ||
|
||
bool | ||
Glf_TestGLContextPrivate::isValid() | ||
{ | ||
return true; | ||
} | ||
|
||
bool | ||
Glf_TestGLContextPrivate::operator==(const Glf_TestGLContextPrivate& rhs) const | ||
{ | ||
return true; | ||
} | ||
|
||
const Glf_TestGLContextPrivate * | ||
Glf_TestGLContextPrivate::currentContext() | ||
{ | ||
return _currenGLContext; | ||
} | ||
|
||
bool | ||
Glf_TestGLContextPrivate::areSharing( | ||
const Glf_TestGLContextPrivate * context1, | ||
const Glf_TestGLContextPrivate * context2) | ||
{ | ||
if (!context1 || !context2) | ||
return false; | ||
|
||
return context1->_sharedContext==context2->_sharedContext; | ||
} | ||
|
||
PXR_NAMESPACE_CLOSE_SCOPE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// Copyright 2024 Pixar | ||
// | ||
// Licensed under the terms set forth in the LICENSE.txt file available at | ||
// https://openusd.org/license. | ||
// | ||
#ifndef PXR_IMAGING_GLF_TEST_GLNULLCONTEXT_H | ||
#define PXR_IMAGING_GLF_TEST_GLNULLCONTEXT_H | ||
|
||
/// \file glf/testGLNull/Context.h | ||
|
||
#include "pxr/pxr.h" | ||
|
||
PXR_NAMESPACE_OPEN_SCOPE | ||
|
||
class Glf_TestGLContextPrivate { | ||
public: | ||
Glf_TestGLContextPrivate( Glf_TestGLContextPrivate const * other=nullptr ); | ||
|
||
void makeCurrent( ) const; | ||
|
||
bool isValid(); | ||
|
||
bool operator==(const Glf_TestGLContextPrivate& rhs) const; | ||
|
||
static const Glf_TestGLContextPrivate * currentContext(); | ||
|
||
static bool areSharing( const Glf_TestGLContextPrivate * context1, | ||
const Glf_TestGLContextPrivate * context2 ); | ||
|
||
private: | ||
Glf_TestGLContextPrivate const * _sharedContext; | ||
|
||
static Glf_TestGLContextPrivate const * _currenGLContext; | ||
}; | ||
|
||
PXR_NAMESPACE_CLOSE_SCOPE | ||
|
||
#endif //PXR_IMAGING_GLF_TEST_GLNULLCONTEXT_H |
Oops, something went wrong.