You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
708 B
C
22 lines
708 B
C
// Modifications copyright Amazon.com, Inc. or its affiliates
|
|
// Modifications copyright Crytek GmbH
|
|
|
|
#ifndef DECODE_H
|
|
#define DECODE_H
|
|
|
|
#include "internal_includes/structs.h"
|
|
|
|
Shader* DecodeDXBC(uint32_t* data);
|
|
|
|
//You don't need to call this directly because DecodeDXBC
|
|
//will call DecodeDX9BC if the shader looks
|
|
//like it is SM1/2/3.
|
|
Shader* DecodeDX9BC(const uint32_t* pui32Tokens);
|
|
|
|
void UpdateDeclarationReferences(Shader* psShader, Declaration* psDeclaration);
|
|
void UpdateInstructionReferences(Shader* psShader, Instruction* psInstruction);
|
|
|
|
#define FOURCC(a, b, c, d) ((uint32_t)(uint8_t)(a) | ((uint32_t)(uint8_t)(b) << 8) | ((uint32_t)(uint8_t)(c) << 16) | ((uint32_t)(uint8_t)(d) << 24))
|
|
|
|
#endif
|