-
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
20cc674
commit bcb31dd
Showing
13 changed files
with
139 additions
and
9 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
5 changes: 5 additions & 0 deletions
5
Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/sampler.cpp
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,5 @@ | ||
#include "sampler_functions.h" | ||
|
||
#include "d3d12unit.h" | ||
|
||
#include <kope/graphics5/sampler.h> |
14 changes: 14 additions & 0 deletions
14
Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/sampler_functions.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,14 @@ | ||
#ifndef KOPE_D3D12_SAMPLER_FUNCTIONS_HEADER | ||
#define KOPE_D3D12_SAMPLER_FUNCTIONS_HEADER | ||
|
||
#include <kope/graphics5/sampler.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
18 changes: 18 additions & 0 deletions
18
Backends/Graphics5/Direct3D12/Sources/kope/direct3d12/sampler_structs.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,18 @@ | ||
#ifndef KOPE_D3D12_SAMPLER_STRUCTS_HEADER | ||
#define KOPE_D3D12_SAMPLER_STRUCTS_HEADER | ||
|
||
#include "d3d12mini.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
typedef struct kope_d3d12_sampler { | ||
int nothing; | ||
} kope_d3d12_sampler; | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#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 |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
#include "commandlist.c" | ||
#include "device.c" | ||
#include "graphics.c" | ||
#include "sampler.c" | ||
#include "texture.c" |
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,9 @@ | ||
#include "sampler.h" | ||
|
||
#ifdef KOPE_DIRECT3D12 | ||
#include <kope/direct3d12/sampler_functions.h> | ||
#endif | ||
|
||
#ifdef KOPE_VULKAN | ||
#include <kope/vulkan/sampler_functions.h> | ||
#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,28 @@ | ||
#ifndef KOPE_G5_SAMPLER_HEADER | ||
#define KOPE_G5_SAMPLER_HEADER | ||
|
||
#include <kope/global.h> | ||
|
||
#include "api.h" | ||
|
||
#ifdef KOPE_DIRECT3D12 | ||
#include <kope/direct3d12/sampler_structs.h> | ||
#endif | ||
|
||
#ifdef KOPE_VULKAN | ||
#include <kope/vulkan/sampler_structs.h> | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
typedef struct kope_g5_sampler { | ||
KOPE_G5_IMPL(texture); | ||
} kope_g5_sampler; | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |