forked from Ryan-rsm-McKenzie/CommonLibSSE
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from Jonahex/MoreISStuff
feat: BSComputeShader and some improvements for BSImagespaceSahder.
- Loading branch information
Showing
7 changed files
with
107 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#pragma once | ||
|
||
#include "RE/B/BSReloadShaderI.h" | ||
#include "RE/B/BSShader.h" | ||
#include "RE/N/NiRefObject.h" | ||
|
||
namespace RE | ||
{ | ||
class BSComputeShader : public NiRefObject, public BSReloadShaderI | ||
{ | ||
public: | ||
inline static constexpr auto RTTI = RTTI_BSComputeShader; | ||
inline static constexpr auto VTABLE = VTABLE_BSComputeShader; | ||
|
||
~BSComputeShader() override; // 00 | ||
|
||
// override (BSReloadShaderI) | ||
void ReloadShaders(void* a_stream) override; // 00 | ||
|
||
// add | ||
virtual void Dispatch(uint32_t a_techniqueId, uint32_t a_threadGroupCountX, uint32_t a_threadGroupCountY, uint32_t a_threadGroupCountZ); // 02 | ||
|
||
// members | ||
const char* name; // 18 | ||
BSTHashMap<uint32_t, BSGraphics::ComputeShader*> shadersMap; // 20 | ||
}; | ||
static_assert(sizeof(BSComputeShader) == 0x50); | ||
} |
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