1. A method for domain shading comprising: analyzing graphics state data; and generating all first primitives through a single-pass domain shading or generating only second primitives which are visible among the first primitives through a two-pass domain shading based on a result of the analysis.