README
Ploy3D
Ploy3D
Table of contents
Enumerations
- ANALYSIS
- AnimationClip_member
- AnimationData_member
- Animator_member
- BlendMode
- Buffer_member
- Camera_member
- ClassID
- Collider_member
- Env_member
- GLBufferUsage
- GLShaderStage
- GLTextureUsage
- GLTopologyType
- GL_const
- Image_ktx_member
- MaterialLink_member
- MeshRenderer_member
- Mesh_member
- Morphing_member
- Object3D_member
- PropFormat
- PropType
- RenderQueue
- RenderQueueRange
- RenderSettingsFlag
- ResState
- SharedResType
- Skeleton_member
- Skin_member
- SortingCriteria
- Texture2D_member
- Uniform_member
- WorkType
Classes
- AnimationClip
- AnimationCtrl
- AnimationData
- Animator
- Assembly
- Camera
- Collider
- Context
- DAZFile
- Device
- DrawQueue
- Factory
- GLCanvasContext
- GLCommandBuffer
- GLCommandEncoder
- GLDevice
- GLRenderPassEncoder
- Image_ktx
- Importer
- Importer_daz
- Importer_util
- Kernel
- Material
- Matrix4x4
- Mesh
- MeshRenderer
- Miaoworker
- Object3D
- Package
- Pipelayer
- Quaternion
- Renderer
- Resource
- Resources
- Scene
- Scenes
- ShaderRes
- SharedENV
- Signal
- SkeletonSkin
- Texture2D
- TransformCtrl
- Vector3
Interfaces
- AnimationState
- Asset
- Asset_animation
- Asset_bundle
- Asset_file
- Asset_geometry
- Asset_image
- Asset_instance_animator
- Asset_instance_camera
- Asset_instance_collider
- Asset_instance_meshrenderer
- Asset_instance_node
- Asset_material
- Asset_mesh
- Asset_mesh_creater
- Asset_meshdata
- Asset_meshrenderer
- Asset_morph
- Asset_node
- Asset_prefab
- Asset_shader
- Asset_skeleton_skin
- Asset_uv_set
- Asset_wrapper_anim_channel
- Asset_wrapper_anim_sampler
- Asset_wrapper_texture
- CompileArgs
- Config
- DrawStat
- FramePass
- GLBindEntryLayout
- GLBindGroup
- GLBindGroupDescriptor
- GLBindGroupEntry
- GLBindGroupLayout
- GLBindGroupLayoutDescriptor
- GLBindGroupLayoutEntry
- GLBlendComponent
- GLBlendState
- GLBuffer
- GLBufferDescriptor
- GLPipelineLayout
- GLPipelineLayoutDescriptor
- GLPrimitiveState
- GLRenderPassDescriptor
- GLRenderPipeline
- GLRenderPipelineDescriptor
- GLSampler
- GLSamplerDescriptor
- GLShaderModule
- GLStencilFaceState
- GLTexture
- GLTextureDescriptor
- GLTextureView
- GLTextureViewDescriptor
- GLVertexBufferLayout
- HierarchyNode
- IAssembly
- Imports
- Internal
- MeshRenderer_union
- Mesh_data
- Mesh_index_buffer
- Mesh_vertex_buffer
- Metadesc_camera
- Metadesc_shader
- MiaoverseModule
- PipelineSetting
- PropDecl
- PropLayout
- PropTuple
- PropVar
- RenderPass
- Shader
- ShaderAsset
- ShaderPass
- Shader_macro
- WorkInfo
- daz_asset
- daz_asset_info
- daz_bulge_binding
- daz_channel
- daz_channel_animation
- daz_channel_float
- daz_channel_vector
- daz_geometry
- daz_geometry_instance
- daz_geometry_preview
- daz_graft
- daz_image
- daz_image_map
- daz_material
- daz_material_channel
- daz_material_instance
- daz_modifier
- daz_modifier_instance
- daz_morph
- daz_node
- daz_node_instance
- daz_presentation
- daz_region
- daz_rigidity
- daz_rigidity_group
- daz_scene
- daz_skin_binding
- daz_uv_set
- daz_uv_set_instance
- daz_weighted_joint
Type Aliases
- GLTextureFormat
- GLVertexFormat
- Guid
- Uri
- daz_date_time
- daz_float
- daz_float2
- daz_float2_array
- daz_float3
- daz_float3_array
- daz_float3_indexed
- daz_float3_indexed_array
- daz_float4
- daz_float5
- daz_float_array
- daz_float_indexed
- daz_float_indexed_array
- daz_int
- daz_int2
- daz_int2_array
- daz_int_array
- daz_string_array
- io_addr
- io_float
- io_ptr
- io_uint
Variables
Type Aliases
GLTextureFormat
Ƭ GLTextureFormat: "r8unorm"
| "r8snorm"
| "r8uint"
| "r8sint"
| "r16uint"
| "r16sint"
| "r16float"
| "rg8unorm"
| "rg8snorm"
| "rg8uint"
| "rg8sint"
| "r32uint"
| "r32sint"
| "r32float"
| "rg16uint"
| "rg16sint"
| "rg16float"
| "rgba8unorm"
| "rgba8unorm-srgb"
| "rgba8snorm"
| "rgba8uint"
| "rgba8sint"
| "bgra8unorm"
| "bgra8unorm-srgb"
| "rgb9e5ufloat"
| "rgb10a2unorm"
| "rg11b10ufloat"
| "rg32uint"
| "rg32sint"
| "rg32float"
| "rgba16uint"
| "rgba16sint"
| "rgba16float"
| "rgba32uint"
| "rgba32sint"
| "rgba32float"
| "depth16unorm"
| "depth24plus"
| "depth24plus-stencil8"
| "depth32float"
| "depth32float-stencil8"
| "bc1-rgba-unorm"
| "bc3-rgba-unorm"
贴图像素格式类型。
GLVertexFormat
Ƭ GLVertexFormat: "uint8x4"
| "sint8x4"
| "unorm8x4"
| "snorm8x4"
| "uint16x2"
| "uint16x4"
| "sint16x2"
| "sint16x4"
| "unorm16x2"
| "unorm16x4"
| "snorm16x2"
| "snorm16x4"
| "float32"
| "float32x2"
| "float32x3"
| "float32x4"
| "uint32"
| "uint32x2"
| "uint32x3"
| "uint32x4"
| "sint32"
| "sint32x2"
| "sint32x3"
| "sint32x4"
顶点属性格式。
Guid
Ƭ Guid: string
全球唯一ID。
Uri
Ƭ Uri: string
资源URI。 格式:</PKG/年/月/日/包GUID><#资源GUID><?资源属性访问路径>。 URI第1段如果不存在则从当前包查找。
daz_date_time
Ƭ daz_date_time: string
daz_float
Ƭ daz_float: number
daz_float2
Ƭ daz_float2: [number
, number
]
daz_float2_array
Ƭ daz_float2_array: Object
Type declaration
Name | Type |
---|---|
count | daz_int |
values | daz_float2 [] |
daz_float3
Ƭ daz_float3: [number
, number
, number
]
daz_float3_array
Ƭ daz_float3_array: Object
Type declaration
Name | Type |
---|---|
count | daz_int |
values | daz_float3 [] |
daz_float3_indexed
Ƭ daz_float3_indexed: [daz_int
, daz_float
, daz_float
, daz_float
]
daz_float3_indexed_array
Ƭ daz_float3_indexed_array: Object
Type declaration
Name | Type |
---|---|
count | daz_int |
values | daz_float3_indexed [] |
daz_float4
Ƭ daz_float4: [number
, number
, number
, number
]
daz_float5
Ƭ daz_float5: [number
, number
, number
, number
, number
]
daz_float_array
Ƭ daz_float_array: Object
Type declaration
Name | Type |
---|---|
count | daz_int |
values | daz_float [] |
daz_float_indexed
Ƭ daz_float_indexed: [daz_int
, daz_float
]
daz_float_indexed_array
Ƭ daz_float_indexed_array: Object
Type declaration
Name | Type |
---|---|
count | daz_int |
values | daz_float_indexed [] |
daz_int
Ƭ daz_int: number
daz_int2
Ƭ daz_int2: [number
, number
]
daz_int2_array
Ƭ daz_int2_array: Object
Type declaration
Name | Type |
---|---|
count | daz_int |
values | daz_int2 [] |
daz_int_array
Ƭ daz_int_array: Object
Type declaration
Name | Type |
---|---|
count | daz_int |
values | daz_int [] |
daz_string_array
Ƭ daz_string_array: Object
Type declaration
Name | Type |
---|---|
count | daz_int |
values | string [] |
io_addr
Ƭ io_addr: Object
用于与内核交换的数据地址(作为参数或返回值,为了内存安全,我们把它定义为奇怪的类型),地址应确保小于4G。
Type declaration
Name | Type |
---|---|
addr | number |
io_float
Ƭ io_float: number
用于与内核交换的32位浮点型(作为参数和返回值)。
io_ptr
Ƭ io_ptr: Object
用于与内核交换的数据指针(作为参数或返回值,为了内存安全,我们把它定义为奇怪的类型),地址应以4字节为单位,可共享16G内存空间。
Type declaration
Name | Type |
---|---|
uptr | number |
io_uint
Ƭ io_uint: number
用于与内核交换的32位无符号整型(作为参数和返回值)。
Variables
JSZip
• JSZip: any
外部JSZip库,需要HTML引入脚本。
Miaoverse
• Miaoverse: (require
: { kernelUrl?
: string
; pipelineUrl?
: string
; startTS?
: number
; workerUrl?
: string
; workerUrlJS?
: string
; Config?
: (config
: Config
) => Promise
<Config
> ; Fetch?
: <T>(input
: RequestInfo
, init
: RequestInit
, type
: "formData"
| "text"
| "blob"
| "json"
| "arrayBuffer"
) => Promise
<T
> ; Preload?
: () => Promise
<boolean
> ; Progress?
: (rate
: number
, msg
: string
, log?
: boolean
) => void
; Request?
: <T>(method
: "GET"
| "POST"
, url
: string
, type
: ""
| "text"
| "arraybuffer"
| "blob"
| "document"
| "json"
, body
: Document
| XMLHttpRequestBodyInit
, content_type?
: string
, onprogress?
: (rate
: number
) => void
) => Promise
<T
> ; Track?
: (msg
: string
, ctrl?
: number
) => void
}) => MiaoverseModule
Type declaration
• new Miaoverse(require
): MiaoverseModule
模块构造器。
Parameters
Name | Type | Description |
---|---|---|
require | Object | - |
require.kernelUrl? | string | 内核模块URL。 |
require.pipelineUrl? | string | 渲染管线配置文件URL。 |
require.startTS? | number | 应用启动时间戳。 |
require.workerUrl? | string | 线程模块URL。 |
require.workerUrlJS? | string | 线程模块URL。 |
require.Config? | (config : Config ) => Promise <Config > | - |
require.Fetch? | <T>(input : RequestInfo , init : RequestInit , type : "formData" | "text" | "blob" | "json" | "arrayBuffer" ) => Promise <T > | - |
require.Preload? | () => Promise <boolean > | - |
require.Progress? | (rate : number , msg : string , log? : boolean ) => void | - |
require.Request? | <T>(method : "GET" | "POST" , url : string , type : "" | "text" | "arraybuffer" | "blob" | "document" | "json" , body : Document | XMLHttpRequestBodyInit , content_type? : string , onprogress? : (rate : number ) => void ) => Promise <T > | - |
require.Track? | (msg : string , ctrl? : number ) => void | - |