Appendix B. Shazzam Settings

Table B-1. Shazzam tags, general and class level

Shazzam Tag

Description

///

A Shazzam XML comment tag. Content is ignored by the DirectX compiler.

<class>

Specifies the desired classname for generated file. By default, Shazzam uses the filename for the effect name. A class named SwirlyEffect is generated from the Swirly.fx file. Use the <class> tag to override the default name.

<namespace>

Specifies the desired namespace for the effect class. By default, Shazzam uses the namespace configured in the Tools panel settings panel. Use the <namespace> tag to override the default namespace name.

<description>

Provides a description for this effect. Shazzam will generate comments in the .cs/.vb file from this description.

<target>

Forces the compiler to generate a Silverlight or WPF version of the .NET effect class. The default target is configured in the Settings panel. Use the <target> tag to override the default target.

<type>

Use the <type> tag to change the default .NET type specified for the generated dependency property.

Table B-2. Shazzam Tags, parameter level

Shazzam Tag

Description

<summary>

This tag is used by the Tryout tab.

It is used on a shader input parameter to describe the purpose of the input parameter. It causes a tooltip to show in Shazzam for the test control.

<minValue>

This tag is used by the Tryout tab.

It provides an initial value for the minimum textbox.

<maxValue>

This tag is used by the Tryout tab.

It provides an initial value for the maximum textbox. ...

Get HLSL and Pixel Shaders for XAML Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.