1
0
Fork 0
forked from suyu/suyu

shader: Remove curly braces initializers on shared pointers

This commit is contained in:
ReinUsesLisp 2020-02-01 22:49:25 -03:00
parent b5bbe7e752
commit 223a89a19f
5 changed files with 12 additions and 12 deletions

View file

@ -65,8 +65,8 @@ public:
void DetachSegment(ASTNode start, ASTNode end); void DetachSegment(ASTNode start, ASTNode end);
void Remove(ASTNode node); void Remove(ASTNode node);
ASTNode first{}; ASTNode first;
ASTNode last{}; ASTNode last;
}; };
class ASTProgram { class ASTProgram {
@ -299,9 +299,9 @@ private:
friend class ASTZipper; friend class ASTZipper;
ASTData data; ASTData data;
ASTNode parent{}; ASTNode parent;
ASTNode next{}; ASTNode next;
ASTNode previous{}; ASTNode previous;
ASTZipper* manager{}; ASTZipper* manager{};
}; };

View file

@ -297,7 +297,7 @@ void ShaderIR::WriteLop3Instruction(NodeBlock& bb, Register dest, Node op_a, Nod
const Node one = Immediate(1); const Node one = Immediate(1);
const Node two = Immediate(2); const Node two = Immediate(2);
Node value{}; Node value;
for (u32 i = 0; i < lop_iterations; ++i) { for (u32 i = 0; i < lop_iterations; ++i) {
const Node shift_amount = Immediate(i); const Node shift_amount = Immediate(i);

View file

@ -630,7 +630,7 @@ Node4 ShaderIR::GetTexCode(Instruction instr, TextureType texture_type,
aoffi = GetAoffiCoordinates(GetRegister(parameter_register++), coord_count, false); aoffi = GetAoffiCoordinates(GetRegister(parameter_register++), coord_count, false);
} }
Node dc{}; Node dc;
if (depth_compare) { if (depth_compare) {
// Depth is always stored in the register signaled by gpr20 or in the next register if lod // Depth is always stored in the register signaled by gpr20 or in the next register if lod
// or bias are used // or bias are used
@ -666,7 +666,7 @@ Node4 ShaderIR::GetTexsCode(Instruction instr, TextureType texture_type,
const Node array = is_array ? GetRegister(array_register) : nullptr; const Node array = is_array ? GetRegister(array_register) : nullptr;
Node dc{}; Node dc;
if (depth_compare) { if (depth_compare) {
// Depth is always stored in the register signaled by gpr20 or in the next register if lod // Depth is always stored in the register signaled by gpr20 or in the next register if lod
// or bias are used // or bias are used

View file

@ -443,9 +443,9 @@ struct MetaTexture {
std::vector<Node> derivates; std::vector<Node> derivates;
Node bias; Node bias;
Node lod; Node lod;
Node component{}; Node component;
u32 element{}; u32 element{};
Node index{}; Node index;
}; };
struct MetaImage { struct MetaImage {

View file

@ -41,8 +41,8 @@ std::optional<std::pair<Node, Node>> DecoupleIndirectRead(const OperationNode& o
if (operation.GetCode() != OperationCode::UAdd) { if (operation.GetCode() != OperationCode::UAdd) {
return std::nullopt; return std::nullopt;
} }
Node gpr{}; Node gpr;
Node offset{}; Node offset;
ASSERT(operation.GetOperandsCount() == 2); ASSERT(operation.GetOperandsCount() == 2);
for (std::size_t i = 0; i < operation.GetOperandsCount(); i++) { for (std::size_t i = 0; i < operation.GetOperandsCount(); i++) {
Node operand = operation[i]; Node operand = operation[i];