I may suggest you think about a submerged rectangle first then a submerged prism and then convince yourself with a general shape.
First Rule: In a fluid at rest, pressure at a point is equal to the height of the fluid body(h) * unit weight of the fluid, namely at point A, fluid pressure is equal to
[tex]p_A=\gamma h[/tex]
Pressure distribution on a rectangle: (Unrealistic but helps) Think of the rectangle's top and bottom surfaces are perfectly parallel to the still fluid surface. Top surface (edge) of the rectangle is h unit-lengths below the surface. Dimensions of the rectangle is axb unit-length.
Top surface (line in this case) : Equal pressure distribution with magnitude
[tex]p=\gamma h[/tex]
and the total force acting on this surface
[tex]F_{top}=\gamma h a[/tex]
where a is the width of the rectangle.
Side Surfaces(Edges): Pressure forces acting on the side surface are equal and opposite. So we don't need to take them into account.
Bottom Surface(Edge): Equal pressure distribution with magnitude
[tex]p=\gamma (h+b)[/tex]
and the total force acting on this surface
[tex]F_{bottom}=\gamma (h+b) a[/tex]
where b is the height of the rectangle
Force Balance: For equilibrium net body and external forces must vanish.
[tex]\sum_{i}F_{i}=0[/tex]
[tex]F_{bottom}-F_{top}-W=0[/tex]
where W is the weight of the body. Hence
[tex]W=\gamma a b[/tex]
in which a b is the total area of the rectangle. Weight of the body is equal to the weight of the fluid of the same area.
Prism: Prism will have a third dimension, say c. Then, similar to the previous discussion we can obtain the weight of the submerged prism.
[tex]W=\gamma abc[/tex]
Weight of the body is equal to the fluid body of the identical volume.
The pressure difference here is in fact the buoyant force.
Now one can conclude with the well known principle :
Buoyant forces acting on a body is equal to the weight of the fluid displaced by the body.
This is valid for a general shape of object which don't need to submerge. I mean, it can also float.
Now, to carry this topic further, my question at this point to the audience is what is the relationship between the unit weight of the body and the fluid. What can you say about the unit weight of a floating object?