Navigation
API > API/Runtime > API/Runtime/RenderCore
References
| Module | RenderCore |
| Header | /Engine/Source/Runtime/RenderCore/Public/ShaderCore.h |
| Include | #include "ShaderCore.h" |
Syntax
class FShaderCodeResource
Functions
| Type | Name | Description | |
|---|---|---|---|
| FCompositeBuffer | Returns a single composite buffer referencing both the header and code data to be cached. | ||
| FSharedBuffer | Return the buffer storing just the shader code for this resource | ||
| TConstArrayView< uint8 > | GetCodeView () |
Returns a uint8 array view representation of the Code FSharedBuffer, for compatibility's sake (much downstream usage of shader code expects an array of uint8) | |
| EShaderFrequency | GetFrequency () |
Retrieves the shader frequency as stored in the FHeader buffer. | |
| int32 | Retrieves the actual shader code size (excluding optional data) as stored in the FHeader buffer. | ||
| int32 | Retrieves the uncompressed size of the shader code as stored in the FHeader buffer. | ||
| void | PopulateFromComposite
(
FCompositeBuffer CacheBuffer |
Sets the Header and Code shared buffer references in this resource to the segments referenced by the given composite buffer. | |
| void | PopulateHeader
(
int32 UncompressedSize, |
Populates the header for this code resource with the given sizes and frequency. | |
| FCompositeBuffer | Unpack
(
FSharedBuffer MonolithicBuffer |
Unpacks the given FSharedBuffer into separate header/code buffer views and returns them as a 2-segment composite buffer. |