<commit_before>/*
geometry/vertex-buffer - geometry vertex buffer data
Part of Stardazed
(c) 2015-Present by <NAME> - @zenmumbler
https://github.com/stardazed/stardazed
*/

import { PositionedStructField, StructField, ArrayOfStructs } from "stardazed/container";

/**
 * The role of a vertex attribute indicates usage purpose
 * and is used for shader attribute mapping.
 */
export const enum VertexAttributeRole {
	None,

	// standard attributes
	Position,
	Normal,
	Tangent,
	Colour,
	Material,

	// UV sets
	UV,
	UV0 = UV,
	UV1,
	UV2,
	UV3,

	// skinned geometry
	WeightedPos0, WeightedPos1, WeightedPos2, WeightedPos3,
	JointIndexes
}

interface VertexFieldProps {
	/** Only for integer fields, is the value treated as a normalised fraction? */
	normalized: boolean;
	/** The role of this attribute inside the buffer */
	role: VertexAttributeRole;
}
<commit_msg>ref(geom): normalized is an optional field<commit_after>/*
geometry/vertex-buffer - geometry vertex buffer data
Part of Stardazed
(c) 2015-Present by <NAME> - @zenmumbler
https://github.com/stardazed/stardazed
*/

import { PositionedStructField, StructField, ArrayOfStructs } from "stardazed/container";

/**
 * The role of a vertex attribute indicates usage purpose
 * and is used for shader attribute mapping.
 */
export const enum VertexAttributeRole {
	None,

	// standard attributes
	Position,
	Normal,
	Tangent,
	Colour,
	Material,

	// UV sets
	UV,
	UV0 = UV,
	UV1,
	UV2,
	UV3,

	// skinned geometry
	WeightedPos0, WeightedPos1, WeightedPos2, WeightedPos3,
	JointIndexes
}

interface VertexFieldProps {
	/** The role of this attribute inside the buffer */
	role: VertexAttributeRole;
	/** Only for integer fields, is the value treated as a normalised fraction? */
	normalized?: boolean;
}

{'fraction_non_alphanumeric': 0.094211123723042, 'fraction_numerical': 0.01362088535754824, 'mean_word_length': 4.215976331360947, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1438687', 'n_tokens_mistral': 578, 'n_tokens_neox': 559, 'n_words': 185}