namespace Brutal.VulkanApi { /// /// VkFrontFace - Interpret polygon front-facing orientation /// /// /// /// The first step of polygon rasterization is to determine whether the triangle /// is _back-facing_ or _front-facing_. /// This determination is made based on the sign of the (clipped or unclipped) /// polygon's area computed in framebuffer coordinates. /// One way to compute this area is: /// /// /// [latexmath] /// ++++ /// a = -{1 \over 2}\sum_{i=0}^{n-1} /// x_f^i y_f^{i \oplus 1} - /// x_f^{i \oplus 1} y_f^i /// ++++ /// /// /// where latexmath:[x_f^i] and latexmath:[y_f^i] are the x and y /// framebuffer coordinates of the [eq]##i##th vertex of the n-vertex /// polygon (vertices are numbered starting at zero for the purposes of this /// computation) and i {oplus} 1 is (i {plus} 1) mod n. /// /// /// The interpretation of the sign of a is determined by the /// VkPipelineRasterizationStateCreateInfo::frontFace property of /// the currently active pipeline. /// Possible values are: /// /// /// // Provided by VK_VERSION_1_0 /// typedef enum VkFrontFace { /// VK_FRONT_FACE_COUNTER_CLOCKWISE = 0, /// VK_FRONT_FACE_CLOCKWISE = 1, /// } VkFrontFace; /// /// public enum VkFrontFace : int { /// /// CounterClockwise specifies that a triangle with positive area is considered front-facing. /// CounterClockwise = 0, /// /// Clockwise specifies that a triangle with negative area is considered front-facing. Any triangle which is not front-facing is back-facing, including zero-area triangles. /// Clockwise = 1, /// /// MaxEnum /// MaxEnum = 0x7FFFFFFF, } }