-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move FFmpeg de/encoder over to slangmosh iface.
Make it easier to decouple shader compilation for utility code like this.
- Loading branch information
1 parent
876e7c1
commit 4e0739f
Showing
12 changed files
with
102 additions
and
22 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
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,10 @@ | ||
{ | ||
"include": [ "../assets/shaders/inc" ], | ||
"shaders": [ | ||
{ | ||
"name": "yuv_to_rgb", | ||
"compute": true, | ||
"path": "../assets/shaders/util/yuv_to_rgb.comp" | ||
} | ||
] | ||
} |
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,23 @@ | ||
// Autogenerated from slangmosh, do not edit. | ||
#ifndef SLANGMOSH_GENERATED_FFmpegDecodeiface_H | ||
#define SLANGMOSH_GENERATED_FFmpegDecodeiface_H | ||
#include <stdint.h> | ||
namespace Vulkan | ||
{ | ||
class Program; | ||
class Shader; | ||
} | ||
|
||
namespace FFmpegDecode | ||
{ | ||
template <typename Program = Vulkan::Program *, typename Shader = Vulkan::Shader *> | ||
struct Shaders | ||
{ | ||
Program yuv_to_rgb = {}; | ||
Shaders() = default; | ||
|
||
template <typename Device, typename Layout, typename Resolver> | ||
Shaders(Device &device, Layout &layout, const Resolver &resolver); | ||
}; | ||
} | ||
#endif |
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,15 @@ | ||
{ | ||
"include": [ "../assets/shaders/inc" ], | ||
"shaders": [ | ||
{ | ||
"name": "rgb_to_yuv", | ||
"compute": true, | ||
"path": "../assets/shaders/util/rgb_to_yuv.comp" | ||
}, | ||
{ | ||
"name": "chroma_downsample", | ||
"compute": true, | ||
"path": "../assets/shaders/util/chroma_downsample.comp" | ||
} | ||
] | ||
} |
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,24 @@ | ||
// Autogenerated from slangmosh, do not edit. | ||
#ifndef SLANGMOSH_GENERATED_FFmpegEncodeiface_H | ||
#define SLANGMOSH_GENERATED_FFmpegEncodeiface_H | ||
#include <stdint.h> | ||
namespace Vulkan | ||
{ | ||
class Program; | ||
class Shader; | ||
} | ||
|
||
namespace FFmpegEncode | ||
{ | ||
template <typename Program = Vulkan::Program *, typename Shader = Vulkan::Shader *> | ||
struct Shaders | ||
{ | ||
Program rgb_to_yuv = {}; | ||
Program chroma_downsample = {}; | ||
Shaders() = default; | ||
|
||
template <typename Device, typename Layout, typename Resolver> | ||
Shaders(Device &device, Layout &layout, const Resolver &resolver); | ||
}; | ||
} | ||
#endif |