Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vulkan2021
VkCV Framework
Commits
fd4f55ec
Commit
fd4f55ec
authored
3 years ago
by
Trevor Hollmann
Browse files
Options
Downloads
Patches
Plain Diff
[
#79
] Update doxygen comments after recent changes.
parent
c9cdc047
No related branches found
No related tags found
1 merge request
!69
Resolve "Rework Asset Loader API"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/asset_loader/src/vkcv/asset/asset_loader.cpp
+13
-10
13 additions, 10 deletions
modules/asset_loader/src/vkcv/asset/asset_loader.cpp
with
13 additions
and
10 deletions
modules/asset_loader/src/vkcv/asset/asset_loader.cpp
+
13
−
10
View file @
fd4f55ec
...
...
@@ -15,8 +15,8 @@ namespace vkcv::asset {
/**
* This function unrolls nested exceptions via recursion and prints them
* @param e
error code
* @param path path to file that
i
s responsible for
error
* @param e
The exception being thrown
* @param path
The
path to
the
file that
wa
s responsible for
the exception
*/
void
recurseExceptionPrint
(
const
std
::
exception
&
e
,
const
std
::
string
&
path
)
{
...
...
@@ -30,8 +30,8 @@ void recurseExceptionPrint(const std::exception& e, const std::string &path)
/**
* Computes the component count for an accessor type of the fx-gltf library.
* @param type
The accessor type
* @return
An unsigned integer count
* @param type
The accessor type
* @return
An unsigned integer count
*/
// TODO add cases for matrices (or maybe change the type in the struct itself)
uint8_t
getCompCount
(
const
fx
::
gltf
::
Accessor
::
Type
type
)
{
...
...
@@ -54,8 +54,8 @@ uint8_t getCompCount(const fx::gltf::Accessor::Type type) {
* enum for index type. The reason we have defined an incompatible enum that
* needs translation is that only a subset of component types is valid for
* indices and we want to catch these incompatibilities here.
* @param t
The component type
* @return enum representation
* @param t
The component type
* @return
The vkcv::IndexType
enum representation
*/
enum
IndexType
getIndexType
(
const
enum
fx
::
gltf
::
Accessor
::
ComponentType
&
type
)
{
...
...
@@ -78,7 +78,8 @@ enum IndexType getIndexType(const enum fx::gltf::Accessor::ComponentType &type)
* @param img_src The array of images from a fx::gltf::Document
* @param dir The path of directory in which the glTF file is located
* @param dst The array from the vkcv::Scene to write the textures to
* @return ASSET_SUCCESS or ASSET_ERROR
* @return ASSET_ERROR if at least one texture could not be constructed
* properly, otherwise ASSET_SUCCESS
*/
int
loadTextures
(
const
std
::
vector
<
fx
::
gltf
::
Texture
>
&
tex_src
,
const
std
::
vector
<
fx
::
gltf
::
Image
>
&
img_src
,
...
...
@@ -124,9 +125,11 @@ int loadTextures(const std::vector<fx::gltf::Texture> &tex_src,
* This function fills the array of vertex attributes of a VertexGroup (usually
* part of a vkcv::asset::Mesh) object based on the description of attributes
* for a fx::gltf::Primitive.
* @param src The description of attribute objects from the fx-gltf library
* @param dst The array of vertex attributes stored in an asset::Mesh object
* @return return code
* @param src The description of attribute objects from the fx-gltf library
* @param gltf The main glTF document
* @param dst The array of vertex attributes stored in an asset::Mesh object
* @return ASSET_ERROR when at least one VertexAttribute could not be
* constructed properly, otherwise ASSET_SUCCESS
*/
int
getVertexAttributes
(
const
fx
::
gltf
::
Attributes
&
src
,
const
fx
::
gltf
::
Document
&
gltf
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment