libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
Shader.h
Go to the documentation of this file.
1#pragma once
2
4namespace Ship {
5
13class Shader final : public Resource<void> {
14 public:
15 using Resource::Resource;
16
19
26 void* GetPointer() override;
27
32 size_t GetPointerSize() override;
33
35 std::string Data;
36};
37}; // namespace Ship
Typed resource base class that provides a strongly-typed pointer accessor.
Definition Resource.h:73
Resource type representing a shader program source.
Definition Shader.h:13
Shader()
Default-constructs an empty Shader resource.
std::string Data
Shader source code.
Definition Shader.h:35
void * GetPointer() override
Returns a pointer to the internal shader source string object.
size_t GetPointerSize() override
Returns the size in bytes of the shader source string.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14