-
-
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.
Merge branch 'main' of ssh://github.com/Kode/Kinc
- Loading branch information
Showing
38 changed files
with
270 additions
and
69 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
34 changes: 34 additions & 0 deletions
34
Backends/Graphics4/Direct3D9/Sources/kinc/backend/graphics4/constantbuffer.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,34 @@ | ||
#ifdef KINC_KONG | ||
|
||
#include <kinc/graphics4/constantbuffer.h> | ||
|
||
#include "Direct3D9.h" | ||
|
||
void kinc_g4_constant_buffer_init(kinc_g4_constant_buffer *buffer, size_t size) { | ||
buffer->impl.size = size; | ||
buffer->impl.last_start = 0; | ||
buffer->impl.last_size = size; | ||
} | ||
|
||
void kinc_g4_constant_buffer_destroy(kinc_g4_constant_buffer *buffer) {} | ||
|
||
uint8_t *kinc_g4_constant_buffer_lock_all(kinc_g4_constant_buffer *buffer) { | ||
return NULL; | ||
} | ||
|
||
uint8_t *kinc_g4_constant_buffer_lock(kinc_g4_constant_buffer *buffer, size_t start, size_t size) { | ||
buffer->impl.last_start = start; | ||
buffer->impl.last_size = size; | ||
|
||
return NULL; | ||
} | ||
|
||
void kinc_g4_constant_buffer_unlock_all(kinc_g4_constant_buffer *buffer) {} | ||
|
||
void kinc_g4_constant_buffer_unlock(kinc_g4_constant_buffer *buffer, size_t count) {} | ||
|
||
size_t kinc_g4_constant_buffer_size(kinc_g4_constant_buffer *buffer) { | ||
return buffer->impl.size; | ||
} | ||
|
||
#endif |
11 changes: 11 additions & 0 deletions
11
Backends/Graphics4/Direct3D9/Sources/kinc/backend/graphics4/constantbuffer.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,11 @@ | ||
#pragma once | ||
|
||
#ifdef KINC_KONG | ||
|
||
typedef struct kinc_g4_constant_buffer_impl { | ||
size_t size; | ||
size_t last_start; | ||
size_t last_size; | ||
} kinc_g4_constant_buffer_impl; | ||
|
||
#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
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
Oops, something went wrong.