-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rc/1.51.4' into release
- Loading branch information
Showing
44 changed files
with
2,369 additions
and
1,119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright (C) 2024 The Android Open Source Project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#ifndef TNT_FILAMENT_BACKEND_OPENGL_GLBUFFEROBJECT_H | ||
#define TNT_FILAMENT_BACKEND_OPENGL_GLBUFFEROBJECT_H | ||
|
||
#include "DriverBase.h" | ||
|
||
#include "gl_headers.h" | ||
|
||
#include <backend/DriverEnums.h> | ||
|
||
#include <stdint.h> | ||
|
||
namespace filament::backend { | ||
|
||
struct GLBufferObject : public HwBufferObject { | ||
using HwBufferObject::HwBufferObject; | ||
GLBufferObject(uint32_t size, | ||
BufferObjectBinding bindingType, BufferUsage usage) noexcept | ||
: HwBufferObject(size), usage(usage), bindingType(bindingType) { | ||
} | ||
|
||
struct { | ||
GLuint id; | ||
union { | ||
GLenum binding; | ||
void* buffer; | ||
}; | ||
} gl; | ||
BufferUsage usage; | ||
BufferObjectBinding bindingType; | ||
uint16_t age = 0; | ||
}; | ||
|
||
} // namespace filament::backend | ||
|
||
#endif //TNT_FILAMENT_BACKEND_OPENGL_GLBUFFEROBJECT_H |
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,55 @@ | ||
/* | ||
* Copyright (C) 2024 The Android Open Source Project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#ifndef TNT_FILAMENT_BACKEND_OPENGL_GLTEXTURE_H | ||
#define TNT_FILAMENT_BACKEND_OPENGL_GLTEXTURE_H | ||
|
||
#include "DriverBase.h" | ||
|
||
#include "gl_headers.h" | ||
|
||
#include <backend/platforms/OpenGLPlatform.h> | ||
|
||
#include <stdint.h> | ||
|
||
namespace filament::backend { | ||
|
||
struct GLTexture : public HwTexture { | ||
using HwTexture::HwTexture; | ||
struct GL { | ||
GL() noexcept : imported(false), sidecarSamples(1), reserved(0) {} | ||
GLuint id = 0; // texture or renderbuffer id | ||
GLenum target = 0; | ||
GLenum internalFormat = 0; | ||
GLuint sidecarRenderBufferMS = 0; // multi-sample sidecar renderbuffer | ||
|
||
// texture parameters go here too | ||
GLfloat anisotropy = 1.0; | ||
int8_t baseLevel = 127; | ||
int8_t maxLevel = -1; | ||
uint8_t targetIndex = 0; // optimization: index corresponding to target | ||
bool imported : 1; | ||
uint8_t sidecarSamples : 4; | ||
uint8_t reserved : 3; | ||
} gl; | ||
|
||
OpenGLPlatform::ExternalTexture* externalTexture = nullptr; | ||
}; | ||
|
||
|
||
} // namespace filament::backend | ||
|
||
#endif //TNT_FILAMENT_BACKEND_OPENGL_GLTEXTURE_H |
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
Oops, something went wrong.