Harbor

branch main
showing the latest snapshot on main
inline_entry.luma 300 B · Plain text
shader/tests/shaders/inline_entry.luma 0644 Raw
-- Test inline entry points with tuple return type and attributed params
-- Uses auto-binding

uniform material_tex: sampler2D

@entry(fragment)
function shade(uv: vec2, normal: vec3) -> (color: vec4)
	let albedo = sample(material_tex, uv)
	return _shade_Output { color = vec4(albedo.rgb, 1.0) }
end